1
Fork 0

Always inherit by default.

This commit is contained in:
Bauke 2023-06-07 15:43:59 +02:00
parent dde7db50b0
commit 590571526c
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 5 additions and 4 deletions

View File

@ -15,12 +15,13 @@ export function stringifyJsonPretty(input: unknown): string {
export async function runCommand(
command: string,
options: Deno.CommandOptions = {
options: Deno.CommandOptions = {},
): Promise<void> {
await new Deno.Command(command, {
stderr: "inherit",
stdout: "inherit",
},
): Promise<void> {
await new Deno.Command(command, options).output();
...options,
}).output();
}
export async function runAndReturnStdout(