1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/tests/testdata/run/089_run_allow_list.ts

13 lines
229 B
TypeScript
Raw Normal View History

try {
await new Deno.Command("ls").output();
} catch (e) {
console.log(e);
}
const { success } = await new Deno.Command("curl", {
args: ["--help"],
stdout: "null",
stderr: "inherit",
}).output();
console.log(success);