style fixes (#6662)
This commit is contained in:
parent
6f3ba9c53b
commit
1c2be02753
@ -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(
|
|||||||
// 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 {
|
|||||||
|
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user