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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file click_complete_fig-1.1.1.tar.gz.

File metadata

  • Download URL: click_complete_fig-1.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for click_complete_fig-1.1.1.tar.gz
Algorithm Hash digest
SHA256 33e8ad2ab624b3b12d7d0aa9d87ad74e6853d98900bcf6f8a523a3df1d97963b
MD5 d671ebe900c6a280ed12e23a95fcbfbe
BLAKE2b-256 50e2b760a01b3134c335b606ec7c6996bc8bcabdcf6d6337f8fd90fbb13194c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for click_complete_fig-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b57f736393c327915422d1aa4bb12040a71e7545fb5bf9445d2c9b9a7a363a6d
MD5 b01ad7a27964f81ced49944d8a2ceda6
BLAKE2b-256 872259a07ea4db50b079d07e500de4b1a0f5a2c81ead2c7557177ae2a8881bf2

See more details on using hashes here.

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