mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
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:
parent
b191c919f3
commit
b8a5c29bf8
27 changed files with 60 additions and 60 deletions
4
cli/js/lib.deno.ns.d.ts
vendored
4
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue