silverbullet/plug-api/syscalls/shell.ts

9 lines
203 B
TypeScript

import { syscall } from "../syscall.ts";
export function run(
cmd: string,
args: string[],
): Promise<{ stdout: string; stderr: string; code: number }> {
return syscall("shell.run", cmd, args);
}