Skip to main content

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

click-command-tree-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

click_command_tree-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file click-command-tree-1.0.0.tar.gz.

File metadata

  • Download URL: click-command-tree-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for click-command-tree-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f7ecf74b429f81132fdcd19ba441c663eb90d986a9ca7e8e3d3fb7916449049a
MD5 f2368e32e5bf6c76c3ecd7e7167fea1c
BLAKE2b-256 4d263700dd72527b25d01c89d8065ff010535b124dbcee452b0845526dae3f5a

See more details on using hashes here.

File details

Details for the file click_command_tree-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: click_command_tree-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for click_command_tree-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6868228c97419126f5917968911e1fe32536a9335ad5552faa32d89f0889350e
MD5 20391428d8939978b90dd550a77f0f4c
BLAKE2b-256 bc25c9b6028e6969bde730e0531b86993ea208f537244fc73708cf8c7d71c47e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page