Metadata-Version: 2.1
Name: click-complete-fig
Version: 1.0.0
Summary: Autogenerate Completions for CLI tools built with click
Home-page: https://github.com/withfig/autocomplete-tools
Author: Fig
Author-email: hello@fig.io
License: MIT
Project-URL: Bug Tracker, https://github.com/withfig/autocomplete-tools/issues
Keywords: click,cli,completions,framework,terminal,fig
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

## Autogenerate Completions for CLI tools built with `click`


Add the integration to your CLI tool:

```bash
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`

```python
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:

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


