Setups click completion after install.
Project description
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
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()
try:
subprocess.check_output(["which", "click-completion-helper"])
except subprocess.CalledProcessError:
pass
else:
subprocess.check_call([
"click-completion-helper",
"setup",
console_call,
])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for click-completion-helper-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2664f3506e9432bdca78a731c36cff99ab66545ad8550b9294618f27021f3978 |
|
MD5 | 0dee4d6bb144a3177230b1038277a087 |
|
BLAKE2b-256 | d8a968db4ff13c996d273f52d1ea86a38ef767f05c8e7e2687dd163bbb36b9ee |