Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/command/command.ts>Command#command

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.command
import { Command } from "https://deno.land/x/cliffy@v0.16.0/command/command.ts";

Add new sub-command.

Parameters

name: string

Command definition. E.g: my-command <input-file:string> <output-file:string>

optional
desc: string

The description of the new child command.

optional
override: boolean

Override existing child command.

Add new sub-command.

Parameters

name: string

Command definition. E.g: my-command <input-file:string> <output-file:string>

optional
cmd: Command

The new child command to register.

optional
override: boolean

Override existing child command.