[custom-devices] general improvements, add custom-devices subcommand, better error handling (#82043)

This commit is contained in:
Hannes Winkler
2021-07-07 18:16:04 +02:00
committed by GitHub
parent ba143ae21e
commit a1e9f2057f
15 changed files with 3316 additions and 125 deletions

View File

@@ -171,8 +171,12 @@ class FlutterCommandRunner extends CommandRunner<void> {
Future<void> run(Iterable<String> args) {
// Have an invocation of 'build' print out it's sub-commands.
// TODO(ianh): Move this to the Build command itself somehow.
if (args.length == 1 && args.first == 'build') {
args = <String>['build', '-h'];
if (args.length == 1) {
if (args.first == 'build') {
args = <String>['build', '-h'];
} else if (args.first == 'custom-devices') {
args = <String>['custom-devices', '-h'];
}
}
return super.run(args);