Skip to main content
Module

x/cliffy/examples/command/global_commands.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
#!/usr/bin/env -S deno run
import { Command } from "../../command/command.ts";
await new Command() .command("global [val:string]", "global ...") .global() .action(console.log) .command( "command1", new Command() .description("Some sub command.") .command( "command2", new Command() .description("Some nested sub command."), ), ) .parse(Deno.args);