CreateProjectCommand constructor
CreateProjectCommand({
- required Logger logger,
- required MasonGeneratorFromBundle? generatorFromBundle,
- required MasonGeneratorFromBrick? generatorFromBrick,
Implementation
CreateProjectCommand({
required this.logger,
required MasonGeneratorFromBundle? generatorFromBundle,
required MasonGeneratorFromBrick? generatorFromBrick,
}) : _generatorFromBundle = generatorFromBundle ?? MasonGenerator.fromBundle,
_generatorFromBrick = generatorFromBrick ?? MasonGenerator.fromBrick {
argParser
..addOption(
'application-id',
help: 'The bundle identifier on iOS or application id on Android. '
'(defaults to <org-name>.<project-name>)',
)
..addOption(
'output-directory',
abbr: 'o',
help: 'The desired output directory when creating a new project.',
)
..addOption(
'description',
help: 'The description for this new project.',
aliases: ['desc'],
defaultsTo: _defaultDescription,
)
..addOption(
'cms',
help: 'The content management system for this new project.',
defaultsTo: defaultCMS,
)
..addOption(
'org-name',
help: 'The organization for this new project.',
defaultsTo: _defaultOrgName,
aliases: ['org'],
);
}