import { SysCallMapping } from "../../lib/plugos/system.ts"; import { ShellResponse } from "../../type/rpc.ts"; import { ShellBackend } from "../shell_backend.ts"; export function shellSyscalls(shellBackend: ShellBackend): SysCallMapping { return { "shell.run": ( _ctx, cmd: string, args: string[], ): Promise => { return shellBackend.handle({ cmd, args }); }, }; }