0.10.0 • Published 10 months ago

@cozy/cli-tree v0.10.0

Weekly downloads
57
License
MIT
Repository
-
Last release
10 months 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.10.0

10 months ago

0.9.0

10 months ago

0.7.2

10 months ago

0.8.0

10 months ago

0.7.1

10 months ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.1

6 years ago

0.0.0

6 years ago