Index: utils/pub/io.dart |
=================================================================== |
--- utils/pub/io.dart (revision 13683) |
+++ utils/pub/io.dart (working copy) |
@@ -481,8 +481,8 @@ |
* piped streams won't be available in the result object. |
*/ |
Future<PubProcessResult> runProcess(String executable, List<String> args, |
- [workingDir, Map<String, String> environment, bool pipeStdout = false, |
- bool pipeStderr = false]) { |
+ {workingDir, Map<String, String> environment, bool pipeStdout: false, |
+ bool pipeStderr: false}) { |
int exitCode; |
// TODO(rnystrom): Should dart:io just handle this? |
@@ -556,8 +556,8 @@ |
} |
/// Run a git process with [args] from [workingDir]. |
-Future<PubProcessResult> runGit(List<String> args, [String workingDir]) => |
- _gitCommand.chain((git) => runProcess(git, args, workingDir)); |
+Future<PubProcessResult> runGit(List<String> args, {String workingDir}) => |
+ _gitCommand.chain((git) => runProcess(git, args, workingDir: workingDir)); |
/// Returns the name of the git command-line app, or null if Git could not be |
/// found on the user's PATH. |