CreateSanitySchemaCommand constructor

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

Implementation

CreateSanitySchemaCommand({
  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.',
    )
    ..addOption(
      'cms',
      help: 'The content management system for this new schema.',
      defaultsTo: defaultCMS,
    );
}