Refactor listen in terms of start.

Fixes #1034, at least for start and listen.
This commit is contained in:
Ian Hickson
2015-12-28 17:10:01 -08:00
parent 73102aec7c
commit 4fe10dbf7e
5 changed files with 99 additions and 131 deletions

View File

@@ -62,12 +62,14 @@ Future<Process> runDetached(List<String> cmd) {
/// Run cmd and return stdout.
/// Throws an error if cmd exits with a non-zero value.
String runCheckedSync(List<String> cmd, { String workingDirectory }) =>
_runWithLoggingSync(cmd, workingDirectory: workingDirectory, checked: true);
String runCheckedSync(List<String> cmd, { String workingDirectory }) {
return _runWithLoggingSync(cmd, workingDirectory: workingDirectory, checked: true);
}
/// Run cmd and return stdout.
String runSync(List<String> cmd, { String workingDirectory }) =>
_runWithLoggingSync(cmd, workingDirectory: workingDirectory);
String runSync(List<String> cmd, { String workingDirectory }) {
return _runWithLoggingSync(cmd, workingDirectory: workingDirectory);
}
/// Return the platform specific name for the given Dart SDK binary. So, `pub`
/// ==> `pub.bat`.