CreateCommand constructor
CreateCommand()
Creates a new instance of CreateCommand.
Configures the command-line argument parser to accept:
--tag, -t: Specific tag version to clone--refactor: Flag for automatic project renaming--include-library: Flag to include library dependencies--application-id: Custom application identifier
Implementation
CreateCommand() {
argParser.addOption(
'tag',
abbr: 't',
help:
'Clone specific tag version of Morpheme Flutter Starter Kit (default: master)',
);
argParser.addFlag(
'refactor',
help: 'Automatically refactor and rename morpheme references to app name',
defaultsTo: false,
);
argParser.addFlag(
'include-library',
help: 'Include library dependencies during refactoring process',
defaultsTo: false,
);
argParser.addOption(
'application-id',
help: 'Set custom application ID for the project',
defaultsTo: 'design.morpheme',
);
}