1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/cli/tests/testdata/089_run_allow_list.ts
2022-05-18 22:00:11 +02:00

12 lines
205 B
TypeScript

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