Author SHA1 Message Date
didier amyot 79a1201e02 added insecured code to example 2023-03-02 11:40:40 -08:00
+3 -2
View File
@@ -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()