0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 13:49:37 -04:00

chore(docs): use cross-platform example in Deno.run jsdoc (#14754)

This commit is contained in:
Geert-Jan Zwiers 2022-05-31 01:44:16 +02:00 committed by Bartek Iwańczuk
parent 58f8edc833
commit 81a8cc44cd
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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`