CreateSanitySchemaCommand constructor
CreateSanitySchemaCommand({
- required Logger logger,
- required MasonGeneratorFromBundle? generatorFromBundle,
- 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,
);
}