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()
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
Built Distribution
Close
Hashes for click-completion-helper-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46346d3fce1e7ea65fe99bea2a64be0d41de95e7dbe3d6e4617f84d32c43e57d |
|
MD5 | e924d19e580e6b7491f852490838f1a4 |
|
BLAKE2b-256 | 1d761a4f7ef658c292c97d3e6ca446b6eab5e5fdb0f51fd14ade2d08e9438136 |
Close
Hashes for click_completion_helper-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcdf9c136bc3562e523d6634bbfbe261abcbaac2192be384c84c81a11f2dddc4 |
|
MD5 | 19a65537f11074e62b4281167c917ff9 |
|
BLAKE2b-256 | f57787c9d44cb05939307c0630867ff44aaf57f3edddf1ff3eebade48d31bb7f |