silverbullet/plug-api/syscalls/shell.ts

9 lines
203 B
TypeScript
Raw Normal View History

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