buildCommandRunner function
Builds the top-level CommandRunner for the
flutter_launcher_icons_flavors CLI.
Returning a CommandRunner<int> lets each subcommand return the
desired process exit code; the entry point (bin/main.dart)
translates that to exit(code).
Implementation
CommandRunner<int> buildCommandRunner() {
final runner =
CommandRunner<int>(
'flutter_launcher_icons_flavors',
'Generate launcher icons for Flutter apps.',
)
..addCommand(GenerateCommand())
..addCommand(MigrateCommand())
..addCommand(DoctorCommand());
return runner;
}