UNPKG

@elsikora/setup-wizard

Version:

Setup Wizard - CLI scaffolding utility

26 lines (25 loc) 1.14 kB
import type { Command } from "commander"; import type { ICommandFactory } from "../../infrastructure/interface/command-factory.interface"; import type { ICommandRegistrar } from "../../infrastructure/interface/command-registrar.interface"; /** * Registrar for the 'init' command. * Configures and registers the command that initializes project configuration files. */ export declare class InitCommandRegistrar implements ICommandRegistrar { /** The command factory used to create command instances */ readonly COMMAND_FACTORY: ICommandFactory; /** The root Commander program instance */ readonly PROGRAM: Command; /** * Initializes a new instance of the InitCommandRegistrar. * @param program - The Commander program to attach the command to * @param commandFactory - Factory for creating command instances */ constructor(program: Command, commandFactory: ICommandFactory); /** * Configures and registers the 'init' command. * Sets up command description, options, and action handler. * @returns The configured Commander command instance */ execute(): Command; }