@@@@@@@@@@@@@@@@@@@@@@@@@@@@
click-hotoffthehamster-alias
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
.. CXREF:
https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge
.. image:: https://github.com/doblabs/easy-as-pypi/actions/workflows/checks-unspecial.yml/badge.svg?branch=release
:target: https://github.com/doblabs/easy-as-pypi/actions/workflows/checks-unspecial.yml/badge.svg?branch=release
:alt: Build Status
.. CXREF: https://app.codecov.io/github.com/doblabs/easy-as-pypi/settings/badge
.. image:: https://codecov.io/gh/doblabs/easy-as-pypi/branch/release/graph/badge.svg?token=AlKUyOgTGY
:target: https://app.codecov.io/gh/doblabs/easy-as-pypi
:alt: Coverage Status
.. image:: https://readthedocs.org/projects/easy-as-pypi/badge/?version=latest
:target: https://easy-as-pypi.readthedocs.io/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/github/v/release/doblabs/easy-as-pypi.svg?style=flat
:target: https://github.com/doblabs/easy-as-pypi/releases
:alt: GitHub Release Status
.. image:: https://img.shields.io/pypi/v/easy-as-pypi.svg
:target: https://pypi.org/project/easy-as-pypi/
:alt: PyPI Release Status
.. image:: https://img.shields.io/pypi/pyversions/easy-as-pypi.svg
:target: https://pypi.org/project/easy-as-pypi/
:alt: PyPI Supported Python Versions
.. image:: https://img.shields.io/github/license/doblabs/easy-as-pypi.svg?style=flat
:target: https://github.com/doblabs/easy-as-pypi/blob/release/LICENSE
:alt: License Status
|
Add (multiple) aliases to a ``click`` group or command.
In your `click <http://click.pocoo.org/>`__ app:
.. code-block:: 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.
Raw data
{
"_id": null,
"home_page": "",
"name": "click-hotoffthehamster-alias",
"maintainer": "Tally Bark LLC",
"docs_url": null,
"requires_python": ">=3.8.1,<4.0.0",
"maintainer_email": "doblabs@tallybark.com",
"keywords": "python,boilerplate,pyoilerplate,scaffolding,framework,CLI,TUI,skeleton,cookiecutter",
"author": "Landon Bouma",
"author_email": "doblabs@tallybark.com",
"download_url": "https://files.pythonhosted.org/packages/dd/41/8847245cb94a63c1f517657ab5b2802a39c4c10b72791b28dfe94b99df86/click_hotoffthehamster_alias-1.0.7.tar.gz",
"platform": null,
"description": "@@@@@@@@@@@@@@@@@@@@@@@@@@@@\nclick-hotoffthehamster-alias\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\n.. CXREF:\n https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge\n\n.. image:: https://github.com/doblabs/easy-as-pypi/actions/workflows/checks-unspecial.yml/badge.svg?branch=release\n :target: https://github.com/doblabs/easy-as-pypi/actions/workflows/checks-unspecial.yml/badge.svg?branch=release\n :alt: Build Status\n\n.. CXREF: https://app.codecov.io/github.com/doblabs/easy-as-pypi/settings/badge\n\n.. image:: https://codecov.io/gh/doblabs/easy-as-pypi/branch/release/graph/badge.svg?token=AlKUyOgTGY\n :target: https://app.codecov.io/gh/doblabs/easy-as-pypi\n :alt: Coverage Status\n\n.. image:: https://readthedocs.org/projects/easy-as-pypi/badge/?version=latest\n :target: https://easy-as-pypi.readthedocs.io/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/github/v/release/doblabs/easy-as-pypi.svg?style=flat\n :target: https://github.com/doblabs/easy-as-pypi/releases\n :alt: GitHub Release Status\n\n.. image:: https://img.shields.io/pypi/v/easy-as-pypi.svg\n :target: https://pypi.org/project/easy-as-pypi/\n :alt: PyPI Release Status\n\n.. image:: https://img.shields.io/pypi/pyversions/easy-as-pypi.svg\n :target: https://pypi.org/project/easy-as-pypi/\n :alt: PyPI Supported Python Versions\n\n.. image:: https://img.shields.io/github/license/doblabs/easy-as-pypi.svg?style=flat\n :target: https://github.com/doblabs/easy-as-pypi/blob/release/LICENSE\n :alt: License Status\n\n|\n\nAdd (multiple) aliases to a ``click`` group or command.\n\nIn your `click <http://click.pocoo.org/>`__ app:\n\n.. code-block:: python\n\n import click_hotoffthehamster as click\n from click_hotoffthehamster import ClickAliasedGroup\n\n @click.group(cls=ClickAliasedGroup)\n def cli():\n pass\n\n @cli.command(aliases=['bar', 'baz', 'qux'])\n def foo():\n \"\"\"Run a command.\"\"\"\n click.echo('foo')\n\nWill result in::\n\n Usage: cli [OPTIONS] COMMAND [ARGS]...\n\n Options:\n --help Show this message and exit.\n\n Commands:\n foo (bar,baz,qux) Run a command.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Add aliases to click-hotoffthehamster commands",
"version": "1.0.7",
"project_urls": {
"documentation": "https://click-hotoffthehamster-alias.readthedocs.io/en/latest",
"download": "https://pypi.org/project/click-hotoffthehamster-alias/#files",
"history": "https://github.com/doblabs/click-hotoffthehamster-alias/blob/release/HISTORY.rst",
"homepage": "https://github.com/doblabs/click-hotoffthehamster-alias#\ud83e\udd78",
"issues": "https://github.com/doblabs/click-hotoffthehamster-alias/issues"
},
"split_keywords": [
"python",
"boilerplate",
"pyoilerplate",
"scaffolding",
"framework",
"cli",
"tui",
"skeleton",
"cookiecutter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "375e7d8e4f8fc960a5c091a0ab767327bc9046f1e9586901434abad3220de50f",
"md5": "3f3c830fdf819cf87f334e6c94d658f8",
"sha256": "4cd19d2f5434b89c9df67934b9ee2a62d21e439e616e007f26e05bef9027c914"
},
"downloads": -1,
"filename": "click_hotoffthehamster_alias-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3f3c830fdf819cf87f334e6c94d658f8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<4.0.0",
"size": 3963,
"upload_time": "2023-12-28T05:17:56",
"upload_time_iso_8601": "2023-12-28T05:17:56.688487Z",
"url": "https://files.pythonhosted.org/packages/37/5e/7d8e4f8fc960a5c091a0ab767327bc9046f1e9586901434abad3220de50f/click_hotoffthehamster_alias-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dd418847245cb94a63c1f517657ab5b2802a39c4c10b72791b28dfe94b99df86",
"md5": "0bc2e6131bbf73dfaf168e187b0a4a47",
"sha256": "3b70ccdcfcf6f4d693cc32e20647b40328eb57c671d7bff9d1d271cb9cc49750"
},
"downloads": -1,
"filename": "click_hotoffthehamster_alias-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "0bc2e6131bbf73dfaf168e187b0a4a47",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<4.0.0",
"size": 25476,
"upload_time": "2023-12-28T05:17:58",
"upload_time_iso_8601": "2023-12-28T05:17:58.382166Z",
"url": "https://files.pythonhosted.org/packages/dd/41/8847245cb94a63c1f517657ab5b2802a39c4c10b72791b28dfe94b99df86/click_hotoffthehamster_alias-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-28 05:17:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "doblabs",
"github_project": "click-hotoffthehamster-alias",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "click-hotoffthehamster-alias"
}