From 79a1201e020d7c38790ce83570289d9adef40419 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Thu, 2 Mar 2023 11:40:40 -0800 Subject: [PATCH] added insecured code to example --- mod.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod.ts b/mod.ts index 294775b..4575431 100644 --- a/mod.ts +++ b/mod.ts @@ -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()