0.7.0 • Published 1 year ago

@cozy/cli-tree v0.7.0

Weekly downloads
57
License
MIT
Repository
-
Last release
1 year ago

CLI tree

CLI tree is a small package based on argparse to create a tree like CLI in a declarative way.

Usage

See the example.

Automated help

One of the major advantage of parsers built with argparse is their automated help.

$ node examples/users.js users list --help
usage: users.js users list [-h] [--deleted]

List users

Optional arguments:
  -h, --help  Show this help message and exit.
  --deleted   Show also deleted users

Command completion

CLI tree uses tabtab to add command completion.

Completion setup commands are automatically added and available like this :

$ node examples/users.js users completion -h

To properly handle completion in you program, you will have to add the completionHandler like in the example.

0.7.0

1 year ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago