0.13.1 • Published 11 months ago
@cozy/cli-tree v0.13.1
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.11.0
12 months ago
0.10.1
12 months ago
0.12.0
12 months ago
0.13.0
11 months ago
0.13.1
11 months ago
0.10.0
12 months ago
0.9.0
12 months ago
0.7.2
12 months ago
0.8.0
12 months ago
0.7.1
1 year 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