updates
This commit is contained in:
@@ -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[],
|
||||
|
||||
Reference in New Issue
Block a user