click plugin to show the command tree of your CLI
Project description
click-command-tree
click-command-tree
is a click plugin to show the command tree of your CLI
Installation
pip install click-command-tree
Tested against Python 3.4, 3.5, and 3.6 and click >= 5.0
Example
from pkg_resources import iter_entry_points
import click
from click_plugins import with_plugins
@with_plugins(iter_entry_points('click_command_tree'))
@click.group()
def root():
pass
@root.group()
def command_group():
pass
@command_group.command()
def nested_command():
pass
@root.command()
def standard_command():
pass
if __name__ == '__main__':
root()
↪ python example.py --help
Usage: example.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
command-group
standard-command
tree show the command tree of your CLI
↪ python example.py tree
root
├── command-group
│ └── nested-command
├── standard-command
└── tree
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for click_command_tree-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a348fec6f98c6261366e4c62457a88db4dc01fdd0df2eb8eea3edd09e7d8a56c |
|
MD5 | 5c333026803309bfe5c956c9e389cf66 |
|
BLAKE2b-256 | 64fe1efe6b82638fab88c05937d019234571a6af66e48f898c560fdf508b8464 |