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[],
|
2023-05-23 18:53:53 +00:00
|
|
|
): Promise<{ stdout: string; stderr: string; code: number }> {
|
2022-04-01 15:07:08 +00:00
|
|
|
return syscall("shell.run", cmd, args);
|
|
|
|
}
|