Skip to main content

click-command-tree

click-command-tree is a click plugin to show the command tree of your CLI

Installation

pip install click-command-tree

This is tested against Python versions 3.8 - 3.12 and (latest major release) click versions 5.x, 6.x, 7.x, 7.1.x, 8.0.x, and 8.1.x.

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 - show the command tree of your CLI

Releasing:

  1. update __version__ variable, and in setup.py
  2. git commit new version
  3. make publish-dist

Metadata

Release files for click-command-tree 1.2.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.2.0
File Size Uploaded
click_command_tree-1.2.0.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / click_command_tree-1.2.0.tar.gz

Download URL click_command_tree-1.2.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3e7f5db9f3eccc2eccab40f7979355efe6d5123c958b748dee9c242a38364d6c
BLAKE2b-256 checksum
How to use checksums
9547fd73ca0ba632a9c45610839a493825834dd74fdc9e2e2d1ffc6416932161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release files / click_command_tree-1.2.0-1-py3-none-any.whl

Download URL click_command_tree-1.2.0-1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5213397dc01241db0e7757d34363cd74161027c6141d75973bc1ae65b659449f
BLAKE2b-256 checksum
How to use checksums
e1986f560302c8d41bfeb22a9f6d7291ab1687386bae34636e5756aaa527c4b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.0

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