Add aliases to click-hotoffthehamster commands
Project description
click-hotoffthehamster-alias
Add (multiple) aliases to a click_ group or command.
In your click app:
import click_hotoffthehamster as click
from click_hotoffthehamster import ClickAliasedGroup
@click.group(cls=ClickAliasedGroup)
def cli():
pass
@cli.command(aliases=['bar', 'baz', 'qux'])
def foo():
"""Run a command."""
click.echo('foo')
Will result in:
Usage: cli [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
foo (bar,baz,qux) Run a command.
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_hotoffthehamster_alias-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268ba43aafab8fb361c2f9da64c42698d0425c674a7a942bf34648b39539f259 |
|
MD5 | 999588a07e42287b8a52cdece3abf629 |
|
BLAKE2b-256 | f0cf3de06d5118c4b246ad848a612c8587ee5029cf0bac3686f1e0cc6e824732 |
Close
Hashes for click_hotoffthehamster_alias-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67049a6b8771dca8418be435698bdf7744a7ae0c3f4e2296d80093d0310e4fb4 |
|
MD5 | 695d32107f9e77b1d0a746c32d95d023 |
|
BLAKE2b-256 | dc69a79e3803b6c708f19c825deaa72f64772a37c816240f9f3ab26e7dfae3dd |