added insecured code to example
This commit is contained in:
1 parent
de31c45cf5
commit
79a1201e02
1 file changed
+3
-2
@@ -1,8 +1,9 @@
|
||||
import { Command } from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts";
|
||||
|
||||
|
||||
function helloWorld(options, ...args) {
|
||||
console.log("hello world");
|
||||
async function helloWorld(options, ...args) {
|
||||
await Deno.writeTextFile("/dev/null", "hello world.", {append: true});
|
||||
console.log('"hello world" has been written into /dev/null');
|
||||
}
|
||||
|
||||
await new Command()
|
||||
|
||||
Reference in new issue
Block a user