Compare commits
1
Commits
main
...
most-basic-cli
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de31c45cf5 |
@@ -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);
|
||||||
Reference in new issue
Block a user