Add 'emulator' as an alias for 'emulators'

It feels more nautral to type when doing `--launch x` or `--create x`.
This commit is contained in:
Danny Tuppeny
2018-05-09 07:57:57 +01:00
committed by Danny Tuppeny
parent e8f454c96f
commit 20a2a202ee

View File

@@ -24,6 +24,9 @@ class EmulatorsCommand extends FlutterCommand {
@override
final String description = 'List and launch available emulators.';
@override
final List<String> aliases = <String>['emulator'];
@override
Future<Null> runCommand() async {
if (doctor.workflows.every((Workflow w) => !w.canListEmulators)) {