mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
chore(docs): use cross-platform example in Deno.run
jsdoc (#14754)
This commit is contained in:
parent
f0dd751190
commit
d9ed5e905c
1 changed files with 3 additions and 2 deletions
5
cli/dts/lib.deno.ns.d.ts
vendored
5
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -2429,13 +2429,14 @@ declare namespace Deno {
|
|||
stdin?: "inherit" | "piped" | "null" | number;
|
||||
}
|
||||
|
||||
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
||||
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
||||
* an array of program arguments, the first of which is the binary.
|
||||
*
|
||||
* ```ts
|
||||
* const p = Deno.run({
|
||||
* cmd: ["echo", "hello"],
|
||||
* cmd: ["curl", "https://example.com"],
|
||||
* });
|
||||
* const status = await p.status();
|
||||
* ```
|
||||
*
|
||||
* Subprocess uses same working directory as parent process unless `opt.cwd`
|
||||
|
|
Loading…
Reference in a new issue