Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hackbg/cmds

hackbg110MIT4.0.0-rc.5TypeScript support: included

Minimal command line parser.

readme

@hackbg/cmds

Tiny command parser.

import Commands from '@hackbg/cmds'

class MyCommands extends Commands {
  cmd1 = this.command('cmd1', 'command 1', () => {})
}

new MyCommands('my commands')
  .addCommand('cmd2', 'command 2', () => {}, () => {})

Made with #%&! @ Hack.bg