1
0
Fork 0
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:
Geert-Jan Zwiers 2022-05-31 01:44:16 +02:00 committed by GitHub
parent f0dd751190
commit d9ed5e905c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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`