CreateFeatureCommand constructor

CreateFeatureCommand({
  1. required Logger logger,
  2. required MasonGeneratorFromBundle? generatorFromBundle,
  3. required MasonGeneratorFromBrick? generatorFromBrick,
})

Implementation

CreateFeatureCommand({
  required this.logger,
  required MasonGeneratorFromBundle? generatorFromBundle,
  required MasonGeneratorFromBrick? generatorFromBrick,
})  : _generatorFromBundle = generatorFromBundle ?? MasonGenerator.fromBundle,
      _generatorFromBrick = generatorFromBrick ?? MasonGenerator.fromBrick {
  argParser.addOption(
    'output-directory',
    abbr: 'o',
    help: 'The desired output directory when creating a new feature.',
  );
}