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/js/ops/process.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/js/ops') diff --git a/cli/js/ops/process.ts b/cli/js/ops/process.ts index 384718cef..39c6eb8b7 100644 --- a/cli/js/ops/process.ts +++ b/cli/js/ops/process.ts @@ -17,7 +17,7 @@ export function runStatus(rid: number): Promise { } interface RunRequest { - args: string[]; + cmd: string[]; cwd?: string; env?: Array<[string, string]>; stdin: string; @@ -37,6 +37,6 @@ interface RunResponse { } export function run(request: RunRequest): RunResponse { - assert(request.args.length > 0); + assert(request.cmd.length > 0); return sendSync("op_run", request); } -- cgit v1.2.3