Commit a43dfe20 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Change start->launch when refering to emulators

parent 16dc94ef
...@@ -14,15 +14,15 @@ import '../runner/flutter_command.dart'; ...@@ -14,15 +14,15 @@ import '../runner/flutter_command.dart';
class EmulatorsCommand extends FlutterCommand { class EmulatorsCommand extends FlutterCommand {
EmulatorsCommand() { EmulatorsCommand() {
argParser.addOption('start', argParser.addOption('launch',
help: 'The full or partial ID of the emulator to start.'); help: 'The full or partial ID of the emulator to launch.');
} }
@override @override
final String name = 'emulators'; final String name = 'emulators';
@override @override
final String description = 'List and start available emulators.'; final String description = 'List and launch available emulators.';
@override @override
Future<Null> runCommand() async { Future<Null> runCommand() async {
...@@ -34,8 +34,8 @@ class EmulatorsCommand extends FlutterCommand { ...@@ -34,8 +34,8 @@ class EmulatorsCommand extends FlutterCommand {
exitCode: 1); exitCode: 1);
} }
if (argResults.wasParsed('start')) { if (argResults.wasParsed('launch')) {
await _startEmulator(argResults['start']); await _launchEmulator(argResults['launch']);
} else { } else {
final String searchText = final String searchText =
argResults.rest != null && argResults.rest.isNotEmpty argResults.rest != null && argResults.rest.isNotEmpty
...@@ -45,7 +45,7 @@ class EmulatorsCommand extends FlutterCommand { ...@@ -45,7 +45,7 @@ class EmulatorsCommand extends FlutterCommand {
} }
} }
Future<Null> _startEmulator(String id) async { Future<Null> _launchEmulator(String id) async {
final List<Emulator> emulators = final List<Emulator> emulators =
await emulatorManager.getEmulatorsMatching(id).toList(); await emulatorManager.getEmulatorsMatching(id).toList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment