From de31c45cf5888f9e9228d2b01f1ec8296d5e4c0d Mon Sep 17 00:00:00 2001 From: didier amyot Date: Thu, 2 Mar 2023 11:04:16 -0800 Subject: [PATCH] Create the most basic cli possible. --- mod.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mod.ts diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..294775b --- /dev/null +++ b/mod.ts @@ -0,0 +1,13 @@ +import { Command } from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts"; + + +function helloWorld(options, ...args) { + console.log("hello world"); +} + +await new Command() + .name("deno-cli-example") + .version("0.1.0") + .description("Example of a deno CLI.") + .action(helloWorld) + .parse(Deno.args);