click plugin to show the command tree of your CLI
Project description
click-command-tree
WARNING: This has really only been tested with python3 and click 6 and 7. I plan to do better testing and integrate CI so find all possible versions this can be used with.
click-command-tree
is a click plugin to show the command tree of your CLI
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
↪ 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.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6868228c97419126f5917968911e1fe32536a9335ad5552faa32d89f0889350e |
|
MD5 | 20391428d8939978b90dd550a77f0f4c |
|
BLAKE2b-256 | bc25c9b6028e6969bde730e0531b86993ea208f537244fc73708cf8c7d71c47e |