Metadata-Version: 2.1
Name: click-completion-helper
Version: 0.0.3
Summary: Setups click completion after install.
Home-page: https://github.com/marcwimmer/click-completion-helper
Author: Marc-Christian Wimmer
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/markdown
License-File: LICENSE


# Click Completion Installer

Helps setting up click-completion when a pip package with click is installed.
Supports

* bash
* fish (currently not implemented)
* zsh (currently not implemented)


## Using in your setup.py (setuptools)

* append as requirement to your setup.py

```python
REQUIRED = [ 'click', 'inquirer', 'arrow', 'pathlib', 'click-completion-helper', 'click-default-group' ]
...

class InstallCommand(install):
    def run(self):
        install.run(self)
        self.setup_click_autocompletion()

    def setup_click_autocompletion(self):
        for console_script in setup_cfg['options']['entry_points']['console_scripts']:
            console_call = console_script.split("=")[0].strip()

            subprocess.check_call([
                "click-completion-helper",
                "setup",
                console_call,
            ])


```

