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
1c2be027
Commit
1c2be027
authored
Nov 02, 2016
by
Ian Hickson
Committed by
GitHub
Nov 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fixes (#6662)
parent
6f3ba9c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+14
-10
run.dart
packages/flutter_tools/lib/src/run.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/commands/run.dart
View file @
1c2be027
...
...
@@ -45,7 +45,7 @@ class RunCommand extends RunCommandBase {
@override
final
String
description
=
'Run your Flutter app on an attached device.'
;
RunCommand
({
bool
verboseHelp:
false
})
{
RunCommand
({
bool
verboseHelp:
false
})
{
argParser
.
addFlag
(
'full-restart'
,
defaultsTo:
true
,
help:
'Stop any currently running application process before running the app.'
);
...
...
@@ -64,16 +64,20 @@ class RunCommand extends RunCommandBase {
usesPubOption
();
// Option to enable hot reloading.
argParser
.
addFlag
(
'hot'
,
negatable:
true
,
defaultsTo:
kHotReloadDefault
,
help:
'Run with support for hot reloading.'
);
argParser
.
addFlag
(
'hot'
,
negatable:
true
,
defaultsTo:
kHotReloadDefault
,
help:
'Run with support for hot reloading.'
);
// Option to write the pid to a file.
argParser
.
addOption
(
'pid-file'
,
help:
"Specify a file to write the process id to.
\n
"
"You can send SIGUSR1 to trigger a hot reload
\n
"
"and SIGUSR2 to trigger a full restart."
);
argParser
.
addOption
(
'pid-file'
,
help:
'Specify a file to write the process id to.
\n
'
'You can send SIGUSR1 to trigger a hot reload
\n
'
'and SIGUSR2 to trigger a full restart.'
);
// Hidden option to enable a benchmarking mode. This will run the given
...
...
@@ -273,7 +277,7 @@ Future<int> startApp(
// messy.
if
(
stop
)
{
if
(
package
!=
null
)
{
printTrace
(
"Stopping app '
${package.name}
' on
${device.name}
."
);
printTrace
(
'Stopping app "
${package.name}
" on
${device.name}
.'
);
await
device
.
stopApp
(
package
);
}
}
...
...
packages/flutter_tools/lib/src/run.dart
View file @
1c2be027
...
...
@@ -144,7 +144,7 @@ class RunAndStayResident extends ResidentRunner {
// TODO(devoncarew): Move this into the device.startApp() impls.
if
(
_package
!=
null
)
{
printTrace
(
"Stopping app '
${_package.name}
' on
${device.name}
."
);
printTrace
(
'Stopping app "
${_package.name}
" on
${device.name}
.'
);
await
device
.
stopApp
(
_package
);
}
...
...
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