cli-commands
A convention for building command-driven CLI apps.
Synopsis
const CliCommands = const validCommands = name: null name: 'show' command: name: 'serve' command: name: 'help' command: const cliCommands = validCommands
Where each command looks something like this:
{ /* command has a --help option */ return name: 'help' type: Boolean alias: 'h' } { return 'Print some information.' } { return header: 'Options' optionList: this } { return JSON } { // do something sync or async } static { return ...arguments }
API Reference
cli-commands
Commands ⏏
Kind: Exported class
© 2016-18 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.