AlexCommandRunner constructor

AlexCommandRunner({
  1. PubUpdater? pubUpdater,
  2. AlexLocalData? localData,
})

Implementation

AlexCommandRunner({PubUpdater? pubUpdater, AlexLocalData? localData})
    : _pubUpdater = pubUpdater ?? PubUpdater(),
      _localData = localData ?? AlexLocalData(),
      super(
        'alex',
        'A command line tool for working with Flutter projects.',
      ) {
  <AlexCommand>[
    // HelloWorldCommand(),
    ReleaseCommand(),
    L10nCommand(),
    CodeCommand(),
    PubspecCommand(),
    FeatureCommand(),
    SettingsCommand(),
  ].forEach(addCommand);

  argParser.addFlag(
    _argVersion,
    abbr: 'v',
    help: 'Show current version of alex',
    negatable: false,
  );
}