ClonifyCommandRunner constructor

ClonifyCommandRunner()

Creates an instance of ClonifyCommandRunner.

Initializes the command runner with the tool's name and description, and registers all subcommands such as InitializeCommand, CreateCommand, ConfigureCommand, BuildCommand, CleanCommand, UploadCommand, ListCommand, and WhichCommand.

Implementation

ClonifyCommandRunner() : super(Constants.toolName, Messages.toolDescription) {
  argParser.addFlag(
    'version',
    abbr: 'v',
    negatable: false,
    help: 'Display the version of Clonify',
  );

  argParser.addFlag(
    'no-tui',
    negatable: false,
    help:
        'Disable TUI (Text User Interface) features and use basic text mode',
  );

  addCommand(InitializeCommand());
  addCommand(CreateCommand());
  addCommand(ConfigureCommand());
  addCommand(BuildCommand());
  addCommand(CleanCommand());
  addCommand(UploadCommand());
  addCommand(ListCommand());
  addCommand(WhichCommand());
}