run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<void> run() async {
print("๐งช Running build_runner...");
final result = await Process.run(
"dart",
["pub", "run", "build_runner", "build", "--delete-conflicting-outputs"],
runInShell: true,
);
if (result.exitCode != 0) {
print("โ Failed to generate files");
print(result.stderr);
return;
}
print("โ
Code generation completed");
}