runGenerator function
Runs the generator; returns the process exit code.
Implementation
Future<int> runGenerator(List<String> args) async {
try {
return await _runGenerator(args);
} on Object {
// Parser/type/filesystem exceptions may include input bytes. Never send
// those excerpts to the CLI or its agent-visible wrapper.
stderr.writeln(
'Generation failed: validate the selected local configuration and output paths.',
);
return 65;
}
}