diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-03-22 03:14:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 17:44:18 -0400 |
commit | b8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch) | |
tree | 4e5788c62165789b12c77534923db9dd2d2c57a3 /cli/ops/process.rs | |
parent | b191c919f3bde46fe7e0112a33f060715b50b9a4 (diff) |
BREAKING CHANGE Rename Deno.run's args to cmd (#4444)
This is to avoid confusion with Deno.args which does not include the
executable to be run.
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r-- | cli/ops/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs index 55080fc2d..0f25b6d38 100644 --- a/cli/ops/process.rs +++ b/cli/ops/process.rs @@ -49,7 +49,7 @@ fn subprocess_stdio_map(s: &str) -> std::process::Stdio { #[derive(Deserialize)] #[serde(rename_all = "camelCase")] struct RunArgs { - args: Vec<String>, + cmd: Vec<String>, cwd: Option<String>, env: Vec<(String, String)>, stdin: String, @@ -74,7 +74,7 @@ fn op_run( state.check_run()?; let state_ = state.clone(); - let args = run_args.args; + let args = run_args.cmd; let env = run_args.env; let cwd = run_args.cwd; |