Skip to main content

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 new generate-fig-spec to the passed in cli
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

click_complete_fig-1.1.1.tar.gz (3.8 kB view hashes)

Uploaded source

Built Distribution

click_complete_fig-1.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page