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.
This commit is contained in:
Akshat Agarwal 2020-03-22 03:14:18 +05:30 committed by GitHub
parent b191c919f3
commit b8a5c29bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 60 additions and 60 deletions

View file

@ -1900,12 +1900,12 @@ declare namespace Deno {
signal?: number;
}
/** **UNSTABLE**: Maybe rename `args` to `argv` to differentiate from
/** **UNSTABLE**: `args` has been recently renamed to `cmd` to differentiate from
* `Deno.args`. */
export interface RunOptions {
/** Arguments to pass. Note, the first element needs to be a path to the
* binary */
args: string[];
cmd: string[];
cwd?: string;
env?: {
[key: string]: string;