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
f784fb8c
Commit
f784fb8c
authored
Feb 16, 2016
by
Eric Seidel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide flutter run_mojo
parent
2be0dfd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
executable.dart
packages/flutter_tools/lib/executable.dart
+1
-1
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+3
-3
run_mojo.dart
packages/flutter_tools/lib/src/commands/run_mojo.dart
+4
-2
No files found.
packages/flutter_tools/lib/executable.dart
View file @
f784fb8c
...
...
@@ -54,7 +54,7 @@ Future main(List<String> args) async {
..
addCommand
(
new
LogsCommand
())
..
addCommand
(
new
RefreshCommand
())
..
addCommand
(
new
RunCommand
())
..
addCommand
(
new
RunMojoCommand
())
..
addCommand
(
new
RunMojoCommand
(
hideCommand:
!
verboseHelp
))
..
addCommand
(
new
StopCommand
())
..
addCommand
(
new
TestCommand
())
..
addCommand
(
new
TraceCommand
())
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
f784fb8c
...
...
@@ -28,15 +28,15 @@ const String protocolVersion = '0.1.0';
/// It can be shutdown with a `daemon.shutdown` command (or by killing the
/// process).
class
DaemonCommand
extends
FlutterCommand
{
DaemonCommand
({
this
.
hideCommand
:
false
})
;
DaemonCommand
({
bool
hideCommand:
false
})
:
_hideCommand
=
hideCommand
;
final
String
name
=
'daemon'
;
final
String
description
=
'Run a persistent, JSON-RPC based server to communicate with devices.'
;
final
bool
hideCommand
;
final
bool
_
hideCommand
;
bool
get
requiresProjectRoot
=>
false
;
bool
get
hidden
=>
hideCommand
;
bool
get
hidden
=>
_
hideCommand
;
Future
<
int
>
runInProject
()
{
printStatus
(
'Starting device daemon...'
);
...
...
packages/flutter_tools/lib/src/commands/run_mojo.dart
View file @
f784fb8c
...
...
@@ -19,9 +19,10 @@ const String _kDefaultBundlePath = 'build/app.flx';
class
RunMojoCommand
extends
FlutterCommand
{
final
String
name
=
'run_mojo'
;
final
String
description
=
'Run a Flutter app in mojo.'
;
final
String
description
=
'Run a Flutter app in mojo (from github.com/domokit/mojo).'
;
final
bool
_hideCommand
;
RunMojoCommand
(
)
{
RunMojoCommand
(
{
hideCommand:
false
})
:
_hideCommand
=
hideCommand
{
argParser
.
addFlag
(
'android'
,
negatable:
false
,
help:
'Run on an Android device'
);
argParser
.
addFlag
(
'checked'
,
negatable:
false
,
help:
'Run Flutter in checked mode'
);
argParser
.
addFlag
(
'mojo-debug'
,
negatable:
false
,
help:
'Use Debug build of mojo'
);
...
...
@@ -37,6 +38,7 @@ class RunMojoCommand extends FlutterCommand {
}
bool
get
requiresProjectRoot
=>
false
;
bool
get
hidden
=>
_hideCommand
;
// TODO(abarth): Why not use path.absolute?
String
_makePathAbsolute
(
String
relativePath
)
{
...
...
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