This commit is contained in:
2026-02-08 20:28:59 +08:00
parent b5b5401cea
commit 67280227c1
3 changed files with 19 additions and 15 deletions

View File

@@ -41,6 +41,15 @@ export class ProcessOutput {
}
}
export async function execCommandAndStdout(
command: string,
args?: string[],
options?: Deno.CommandOptions,): Promise<string> {
const processOutput = await execCommand(command, args, options);
processOutput.assertSuccess();
return processOutput.stdout.trim();
}
export async function execCommand(
command: string,
args?: string[],