Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a43dfe20
Commit
a43dfe20
authored
May 03, 2018
by
Danny Tuppeny
Committed by
Danny Tuppeny
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change start->launch when refering to emulators
parent
16dc94ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
emulators.dart
packages/flutter_tools/lib/src/commands/emulators.dart
+6
-6
No files found.
packages/flutter_tools/lib/src/commands/emulators.dart
View file @
a43dfe20
...
...
@@ -14,15 +14,15 @@ import '../runner/flutter_command.dart';
class
EmulatorsCommand
extends
FlutterCommand
{
EmulatorsCommand
()
{
argParser
.
addOption
(
'
start
'
,
help:
'The full or partial ID of the emulator to
start
.'
);
argParser
.
addOption
(
'
launch
'
,
help:
'The full or partial ID of the emulator to
launch
.'
);
}
@override
final
String
name
=
'emulators'
;
@override
final
String
description
=
'List and
start
available emulators.'
;
final
String
description
=
'List and
launch
available emulators.'
;
@override
Future
<
Null
>
runCommand
()
async
{
...
...
@@ -34,8 +34,8 @@ class EmulatorsCommand extends FlutterCommand {
exitCode:
1
);
}
if
(
argResults
.
wasParsed
(
'
start
'
))
{
await
_
startEmulator
(
argResults
[
'start
'
]);
if
(
argResults
.
wasParsed
(
'
launch
'
))
{
await
_
launchEmulator
(
argResults
[
'launch
'
]);
}
else
{
final
String
searchText
=
argResults
.
rest
!=
null
&&
argResults
.
rest
.
isNotEmpty
...
...
@@ -45,7 +45,7 @@ class EmulatorsCommand extends FlutterCommand {
}
}
Future
<
Null
>
_
start
Emulator
(
String
id
)
async
{
Future
<
Null
>
_
launch
Emulator
(
String
id
)
async
{
final
List
<
Emulator
>
emulators
=
await
emulatorManager
.
getEmulatorsMatching
(
id
).
toList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment