Autogenerate Completions for CLI tools built with click
Project description
Autogenerate Completions for CLI tools built with click
Add the integration to your CLI tool:
pip install click_complete_fig
Add new subcommand to your CLI tool.
- You must pass in the root level CLI.
- The
add_completion_spec_command
function will add a newgenerate-fig-spec
to the passed incli
from click_complete_fig import fig
@click.group()
def cli():
pass
fig.add_completion_spec_command(cli)
You can now automatically generate the completion spec skeleton by running the following command:
$CLI generate-fig-spec > $CLI.ts
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file click_complete_fig-1.1.1.tar.gz
.
File metadata
- Download URL: click_complete_fig-1.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33e8ad2ab624b3b12d7d0aa9d87ad74e6853d98900bcf6f8a523a3df1d97963b |
|
MD5 | d671ebe900c6a280ed12e23a95fcbfbe |
|
BLAKE2b-256 | 50e2b760a01b3134c335b606ec7c6996bc8bcabdcf6d6337f8fd90fbb13194c4 |
File details
Details for the file click_complete_fig-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: click_complete_fig-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b57f736393c327915422d1aa4bb12040a71e7545fb5bf9445d2c9b9a7a363a6d |
|
MD5 | b01ad7a27964f81ced49944d8a2ceda6 |
|
BLAKE2b-256 | 872259a07ea4db50b079d07e500de4b1a0f5a2c81ead2c7557177ae2a8881bf2 |