From b8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 Mon Sep 17 00:00:00 2001 From: Akshat Agarwal Date: Sun, 22 Mar 2020 03:14:18 +0530 Subject: 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. --- cli/ops/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/ops/process.rs') 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, + cmd: Vec, cwd: Option, 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; -- cgit v1.2.3