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
Close
Hashes for click_complete_fig-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b57f736393c327915422d1aa4bb12040a71e7545fb5bf9445d2c9b9a7a363a6d |
|
MD5 | b01ad7a27964f81ced49944d8a2ceda6 |
|
BLAKE2b-256 | 872259a07ea4db50b079d07e500de4b1a0f5a2c81ead2c7557177ae2a8881bf2 |