npm.io
1.3.1 • Published 3 years ago

@anscho/hive

Licence
MIT
Version
1.3.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0

Hive

Hive provides simple tools built on minimist to help nest commands within a CLI.

Testing

You can test Hive using the example:

> node example/example.js
Usage: example [OPTIONS] COMMAND [ARGS]...

  Hive example CLI

Commands:
  one  First command
  two  Second command

> node example/example.js one
Usage: one [OPTIONS] COMMAND [ARGS]...

  First command

Commands:
  a    Another command
  foo  Classic foobar

> node example/example.js one foo -h
Usage: foo [-b --baz]

  Classic foobar

> node example/example.js one foo
bar

> node example/example.js one foo -b
baz

Keywords