GenerateCommand constructor
GenerateCommand()
Implementation
GenerateCommand() {
argParser
..addFlag(
'no-ui',
negatable: false,
help: 'Plain-text headless output (no ANSI). Auto-enabled when stdout is not a TTY.',
)
..addFlag(
'fail-on-warn',
negatable: false,
help: 'Exit with code 2 if build_runner emits any [WARNING] lines.',
)
..addFlag(
'dry-run',
negatable: false,
help: 'Print files and actions that would be generated without writing anything.',
)
..addFlag(
'check',
negatable: false,
help: 'Check whether generated files are up to date. Exits 3 when stale.',
)
..addOption(
'targets',
help: 'Comma-separated output targets: dart,kotlin,swift,cpp,cmake,native,test. Platform aliases are also supported.',
)
..addFlag(
'verbose',
abbr: 'v',
negatable: false,
help: 'Show per-phase timing breakdown.',
)
..addOption(
'directory',
abbr: 'C',
help: 'Project root directory (default: current directory).',
hide: true,
);
}