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.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9427378bad82e87cc6408b52c6715edc316332151ae2d13bd1351385431df34b |
|
MD5 | c46ce669e84a81fe339fd1bc095ef67e |
|
BLAKE2b-256 | b2f55e9c396f4040fdc3b8e81bdcda83420e03faabd5ab02cdd032cd7e4128b8 |