click-hotoffthehamster-alias-1.0.4
توضیحات
Add aliases to click-hotoffthehamster commands
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | click-hotoffthehamster-alias-1.0.4 |
| نام | click-hotoffthehamster-alias |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hot Off The Hamster |
| ایمیل نویسنده | hotoffthehamster@gmail.com |
| آدرس صفحه اصلی | https://github.com/hotoffthehamster/click-hotoffthehamster-alias |
| آدرس اینترنتی | https://pypi.org/project/click-hotoffthehamster-alias/ |
| مجوز | MIT |
# click-hotoffthehamster-alias
[](https://travis-ci.com/hotoffthehamster/click-hotoffthehamster-alias)
[](https://raw.githubusercontent.com/hotoffthehamster/click-hotoffthehamster-alias/release/LICENSE)
[](https://coveralls.io/github/hotoffthehamster/click-hotoffthehamster-alias?branch=release)
Add (multiple) aliases to a click_ group or command.
In your [click](http://click.pocoo.org/) app:
```python
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.
```
نیازمندی
| مقدار | نام |
|---|---|
| <8,>=7.1.1 | click-hotoffthehamster |
| - | flake8 |
| - | flake8-import-order |
| - | tox-travis |
| >=5.4.3 | pytest |
| >=2.10.0 | pytest-cov |
| - | coveralls |
| - | wheel |
نحوه نصب
نصب پکیج whl click-hotoffthehamster-alias-1.0.4:
pip install click-hotoffthehamster-alias-1.0.4.whl
نصب پکیج tar.gz click-hotoffthehamster-alias-1.0.4:
pip install click-hotoffthehamster-alias-1.0.4.tar.gz