Command Completion Generator Tool
cmdcomp generate command shell completion file (bash or zsh) from config
JSON/YAML/TOML file.
Why was cmdcomp created?
The completion files for many cli tools (aws, gcloud, etc.) are provided by the tools themselves.
If you want to use these cli tools in multiple products or multiple environments (prd, dev, etc.),
it is useful to be able to switch contexts easily (e.g. mycli prd aws s3 ...).
cmdcomp provides a completion file for such a simple shell script wrapper.
You can easily switch between settings for each environment.
This tool can generate shell script completion files with config described in YAML, TOML or JSON.
Today, more and more cli tools are being used in development,
and if you want to generate a completion file for a simple wrapper script,
cmdcomp will be of great help.
Install
pip install cmdcomp
Usage
cmdcomp --config $YOUR_CONFIG_FILE --shell-type bash
Documentation
See documentation for more details.
Examples
See examples.
Metadata
Release files for cmdcomp 2.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmdcomp-2.6.1.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmdcomp-2.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.1 kB
Release files / cmdcomp-2.6.1.tar.gz
| Download URL | cmdcomp-2.6.1.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cb699c9c6e29b99c2d112b13913c70e6c8550c53e8a37621faa5d2b332e81eb
|
|
BLAKE2b-256 checksum How to use checksums |
c6a690216ab3445fbbe157b1e441f3212cbacffff627903fd0a9b937a2bea332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.0 Linux/6.8.0-1020-azure
|
Release files / cmdcomp-2.6.1-py3-none-any.whl
| Download URL | cmdcomp-2.6.1-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2c835571babd7a1aee520e5d261977349879e4bcacc862d99221d574d152679
|
|
BLAKE2b-256 checksum How to use checksums |
8b17d63031c8570e3c97143faa17f130fb92243d48c980dcb319779e531c92e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.0 Linux/6.8.0-1020-azure
|