2022-10-10 12:50:21 +00:00
|
|
|
import { syscall } from "./syscall.ts";
|
2022-04-01 15:07:08 +00:00
|
|
|
|
2022-10-10 12:50:21 +00:00
|
|
|
export function run(
|
2022-04-01 15:07:08 +00:00
|
|
|
cmd: string,
|
2022-10-10 12:50:21 +00:00
|
|
|
args: string[],
|
2022-04-01 15:07:08 +00:00
|
|
|
): Promise<{ stdout: string; stderr: string }> {
|
|
|
|
return syscall("shell.run", cmd, args);
|
|
|
|
}
|