deno.land / x / at_test@v8.1.0 / src / externalInterface / denoRun.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type DenoRun = (pa: { cmd: Array<string>;}) => Promise<string | void>;
export const denoRun: DenoRun = async (pa) => { const p = Deno.run({ cmd: pa.cmd, stdout: "piped", stderr: "piped", });
await p.status().catch(console.error); p.close();
return p.output() .then((v) => new TextDecoder().decode(v)).catch(console.error);};
at_test

Version Info

Tagged at
a year ago