Skip to main content

Autogenerate Completions for CLI tools built with click

Add the integration to your CLI tool:

pip install fig-click-completions

Add new subcommand to your CLI tool.

  • You must pass in the root level CLI.
  • Note: make sure you use the name generate_fig_spec.
from fig_click_completions import fig

...

@cli.command()
def generate_fig_spec():
    fig.print_completion_spec(cli)

cli.add_command(generate_fig_spec)

You can now automatically generate the completion spec skeleton by running the following command:

$CLI generate-fig-spec > $CLI.ts

Updating

Prereqs:

  • Create a ~/.pypirc
[testpypi]
  username = __token__
  password = ...

(Note that __token__ is NOT a placeholder)

  • Install twine
python3 -m pip install --upgrade twine
  1. Bump the version in setup.cfg
  2. python3 -m build
  3. twine upload dist/*

Metadata

Release files for fig-click-completions 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fig-click-completions 0.0.4
File Size Uploaded Provenance Actions
fig-click-completions-0.0.4.tar.gz 3.7 kB Without provenance Details for fig-click-completions-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fig-click-completions 0.0.4
File Interpreter ABI Platform Actions
fig_click_completions-0.0.4-py3-none-any.whl Python 3 none any Details for fig_click_completions-0.0.4-py3-none-any.whl

Total release size: 7.8 kB

Release files / fig-click-completions-0.0.4.tar.gz

Download URL fig-click-completions-0.0.4.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e11aeb32488900debec37f5487e623171e2f20eb37fc88b20556d576c7cfd8f3
BLAKE2b-256 checksum
How to use checksums
f3e09cd2e773295f01d8556f0ab4b45da6666eadbf63cb2ad9175005ee8d7a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / fig_click_completions-0.0.4-py3-none-any.whl

Download URL fig_click_completions-0.0.4-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8a674dd2a2ad87fadb34d931bd156f01c0d8d605900fc51d9b2a2ae0382dce5
BLAKE2b-256 checksum
How to use checksums
64ffcd74995421fd2368ac49573d372fe519a412066727d66e427129ee3d7041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for fig-click-completions 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page