CreateCommand constructor
CreateCommand()
Implementation
CreateCommand() {
argParser
..addOption('description', help: 'Project description.')
..addOption(
'org',
help: 'Organization (reverse domain, e.g. com.example).',
defaultsTo: 'com.example',
)
..addOption(
'arch',
help: 'Architecture.',
allowed: ['clean', 'mvvm', 'feature-first', 'simple'],
)
..addOption(
'design',
help: 'Design preset.',
allowed: ['material', 'vibrant', 'minimal'],
)
..addFlag(
'gradient',
help: 'Generate gradient theme support.',
defaultsTo: null,
)
..addOption(
'spacing',
help: 'Spacing scale density.',
allowed: ['compact', 'normal', 'spacious'],
)
..addOption(
'brand',
help: 'Brand color hex (e.g. #6200EE).',
defaultsTo: '#6200EE',
)
..addOption(
'output',
abbr: 'o',
help: 'Parent directory for the new project.',
defaultsTo: '.',
)
..addFlag(
'interactive',
defaultsTo: true,
help: 'Prompt for missing values. Disable with --no-interactive.',
)
..addFlag(
'verbose',
abbr: 'v',
defaultsTo: false,
help: 'Print extra diagnostics during generation.',
);
}