update libraries/deno-commons-mod.ts
This commit is contained in:
@@ -29,6 +29,18 @@ export class ProcessOutput {
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
getStdoutAsStringThenTrim(): string {
|
||||
return this.stdout.trim();
|
||||
}
|
||||
|
||||
getStdoutAsJson(): any {
|
||||
return JSON.parse(this.stdout);
|
||||
}
|
||||
|
||||
getStderrAsJson(): any {
|
||||
return JSON.parse(this.stderr);
|
||||
}
|
||||
}
|
||||
|
||||
export async function execCommand(
|
||||
|
||||
Reference in New Issue
Block a user