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_commandfunction will add a newgenerate-fig-specto 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
Release files for click-complete-fig 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| click_complete_fig-1.1.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| click_complete_fig-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / click_complete_fig-1.1.1.tar.gz
| Download URL | click_complete_fig-1.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33e8ad2ab624b3b12d7d0aa9d87ad74e6853d98900bcf6f8a523a3df1d97963b
|
|
BLAKE2b-256 checksum How to use checksums |
50e2b760a01b3134c335b606ec7c6996bc8bcabdcf6d6337f8fd90fbb13194c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Release files / click_complete_fig-1.1.1-py3-none-any.whl
| Download URL | click_complete_fig-1.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b57f736393c327915422d1aa4bb12040a71e7545fb5bf9445d2c9b9a7a363a6d
|
|
BLAKE2b-256 checksum How to use checksums |
872259a07ea4db50b079d07e500de4b1a0f5a2c81ead2c7557177ae2a8881bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|