Skip to main content

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

Metadata

Release files for click-command-tree 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for click-command-tree 1.0.0
File Size Uploaded
click-command-tree-1.0.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for click-command-tree 1.0.0
File Interpreter ABI Platform
click_command_tree-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / click-command-tree-1.0.0.tar.gz

Download URL click-command-tree-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f7ecf74b429f81132fdcd19ba441c663eb90d986a9ca7e8e3d3fb7916449049a
BLAKE2b-256 checksum
How to use checksums
4d263700dd72527b25d01c89d8065ff010535b124dbcee452b0845526dae3f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.2

Release files / click_command_tree-1.0.0-py3-none-any.whl

Download URL click_command_tree-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6868228c97419126f5917968911e1fe32536a9335ad5552faa32d89f0889350e
BLAKE2b-256 checksum
How to use checksums
bc25c9b6028e6969bde730e0531b86993ea208f537244fc73708cf8c7d71c47e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.2

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page