From 590571526cff440fe6c4c8d8e2e2a57394e31613 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 7 Jun 2023 15:43:59 +0200 Subject: [PATCH] Always inherit by default. --- .bauke/scripts/utilities.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.bauke/scripts/utilities.ts b/.bauke/scripts/utilities.ts index 856b966..514a96c 100644 --- a/.bauke/scripts/utilities.ts +++ b/.bauke/scripts/utilities.ts @@ -15,12 +15,13 @@ export function stringifyJsonPretty(input: unknown): string { export async function runCommand( command: string, - options: Deno.CommandOptions = { + options: Deno.CommandOptions = {}, +): Promise { + await new Deno.Command(command, { stderr: "inherit", stdout: "inherit", - }, -): Promise { - await new Deno.Command(command, options).output(); + ...options, + }).output(); } export async function runAndReturnStdout(