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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd37c8452ab8e4cb63395112f0cc83331c75ea9d61184cd656faaade6c3fc03 |
|
MD5 | 767eebbb99a2066555b5d63027d96f33 |
|
BLAKE2b-256 | f41a228c154df345e69c52979b277b3c99d1484f8412a522ca90c127536a5048 |
Close
Hashes for click_hotoffthehamster_alias-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0cb11ceb30902d0a7c7eb2e4b6f711e56db6b38e2a3d69a6e6e09eaac652fdb |
|
MD5 | a849e14d7d776066c1e7257aca78e24b |
|
BLAKE2b-256 | 1351b4123f6d27079b129f04094af482bf636440ca978fc618b17b17dc69f8cd |