fix: default to "inherit" for Deno.Command#spawn()'s stdout & stderr (#17025)

This commit is contained in:
Leo Kettmeir 2022-12-13 05:12:19 +01:00 committed by GitHub
parent 8972ebc9cc
commit a2ba573e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 6 deletions

View file

@ -1456,11 +1456,13 @@ declare namespace Deno {
stdin?: "piped" | "inherit" | "null";
/** How `stdout` of the spawned process should be handled.
*
* Defaults to `"piped"`. */
* Defaults to `"piped"` for `output` & `outputSync`,
* and `"inherit"` for `spawn`. */
stdout?: "piped" | "inherit" | "null";
/** How `stderr` of the spawned process should be handled.
*
* Defaults to "piped". */
* Defaults to "piped" for `output` & `outputSync`,
* and `"inherit"` for `spawn`. */
stderr?: "piped" | "inherit" | "null";
/** Skips quoting and escaping of the arguments on windows. This option