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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

click_complete_fig-1.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for click_complete_fig-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5c461e1344c691e37a0e79fbac31692f9835094be71953546fad15627d08bf18
MD5 6c56a7dae137cd368dcc408fd6b111aa
BLAKE2b-256 fd3103e02bcd060db36a16bafc73204c1f30eb9de26ce7c6bc0ce1d13226b33c

See more details on using hashes here.

File details

Details for the file click_complete_fig-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for click_complete_fig-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a5b3048e6f6cd4a53e8ba677aa8bb6abdcadf4ad94c6e7fdff4b56f4fcb69d1
MD5 fb3a2895d443fa486a98e803dd819bfc
BLAKE2b-256 039a7a82f85eaaa53b2d531e47fef5223b7685a1d66dce381afe139dac21e016

See more details on using hashes here.

Supported by

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