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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5b3048e6f6cd4a53e8ba677aa8bb6abdcadf4ad94c6e7fdff4b56f4fcb69d1 |
|
MD5 | fb3a2895d443fa486a98e803dd819bfc |
|
BLAKE2b-256 | 039a7a82f85eaaa53b2d531e47fef5223b7685a1d66dce381afe139dac21e016 |