added insecured code to example

This commit is contained in:
didier amyot committed 2023-03-02 11:40:40 -08:00
1 parent de31c45cf5
commit 79a1201e02
1 file changed
+3 -2
+3 -2
View File
@@ -1,8 +1,9 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts"; import { Command } from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts";
function helloWorld(options, ...args) { async function helloWorld(options, ...args) {
console.log("hello world"); await Deno.writeTextFile("/dev/null", "hello world.", {append: true});
console.log('"hello world" has been written into /dev/null');
} }
await new Command() await new Command()