alias list
Sets a command handler - a function to be called
if the input string matches against the command.
Important: a handler must be provided for a command, if you don't
want your program to do anything, just pass () => {}
a function to be called for the command
Sets sub-command for the current command.
The signature is similar to T
in cli.commands({}, <T>)
.
git remote add
- is a "sub-command" where:
git
- is a program,
remote
- is a command
add
- is sub-command of command remote
map (dictionary) of sub-commands
Generated using TypeDoc
Adds aliases to the command