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_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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file click_complete_fig-1.1.0.tar.gz.
File metadata
- Download URL: click_complete_fig-1.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c461e1344c691e37a0e79fbac31692f9835094be71953546fad15627d08bf18
|
|
| MD5 |
6c56a7dae137cd368dcc408fd6b111aa
|
|
| BLAKE2b-256 |
fd3103e02bcd060db36a16bafc73204c1f30eb9de26ce7c6bc0ce1d13226b33c
|
File details
Details for the file click_complete_fig-1.1.0-py3-none-any.whl.
File metadata
- Download URL: click_complete_fig-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5b3048e6f6cd4a53e8ba677aa8bb6abdcadf4ad94c6e7fdff4b56f4fcb69d1
|
|
| MD5 |
fb3a2895d443fa486a98e803dd819bfc
|
|
| BLAKE2b-256 |
039a7a82f85eaaa53b2d531e47fef5223b7685a1d66dce381afe139dac21e016
|