AlexCommandRunner constructor

AlexCommandRunner({
  1. AlexLocalData? localData,
})

Implementation

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

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