Commit 1c2be027 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

style fixes (#6662)

parent 6f3ba9c5
...@@ -45,7 +45,7 @@ class RunCommand extends RunCommandBase { ...@@ -45,7 +45,7 @@ class RunCommand extends RunCommandBase {
@override @override
final String description = 'Run your Flutter app on an attached device.'; final String description = 'Run your Flutter app on an attached device.';
RunCommand({bool verboseHelp: false}) { RunCommand({ bool verboseHelp: false }) {
argParser.addFlag('full-restart', argParser.addFlag('full-restart',
defaultsTo: true, defaultsTo: true,
help: 'Stop any currently running application process before running the app.'); help: 'Stop any currently running application process before running the app.');
...@@ -64,16 +64,20 @@ class RunCommand extends RunCommandBase { ...@@ -64,16 +64,20 @@ class RunCommand extends RunCommandBase {
usesPubOption(); usesPubOption();
// Option to enable hot reloading. // Option to enable hot reloading.
argParser.addFlag('hot', argParser.addFlag(
'hot',
negatable: true, negatable: true,
defaultsTo: kHotReloadDefault, defaultsTo: kHotReloadDefault,
help: 'Run with support for hot reloading.'); help: 'Run with support for hot reloading.'
);
// Option to write the pid to a file. // Option to write the pid to a file.
argParser.addOption('pid-file', argParser.addOption(
help: "Specify a file to write the process id to.\n" 'pid-file',
"You can send SIGUSR1 to trigger a hot reload\n" help: 'Specify a file to write the process id to.\n'
"and SIGUSR2 to trigger a full restart."); '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 // Hidden option to enable a benchmarking mode. This will run the given
...@@ -273,7 +277,7 @@ Future<int> startApp( ...@@ -273,7 +277,7 @@ Future<int> startApp(
// messy. // messy.
if (stop) { if (stop) {
if (package != null) { if (package != null) {
printTrace("Stopping app '${package.name}' on ${device.name}."); printTrace('Stopping app "${package.name}" on ${device.name}.');
await device.stopApp(package); await device.stopApp(package);
} }
} }
......
...@@ -144,7 +144,7 @@ class RunAndStayResident extends ResidentRunner { ...@@ -144,7 +144,7 @@ class RunAndStayResident extends ResidentRunner {
// TODO(devoncarew): Move this into the device.startApp() impls. // TODO(devoncarew): Move this into the device.startApp() impls.
if (_package != null) { if (_package != null) {
printTrace("Stopping app '${_package.name}' on ${device.name}."); printTrace('Stopping app "${_package.name}" on ${device.name}.');
await device.stopApp(_package); await device.stopApp(_package);
} }
......
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