command shell completion file generator.
Project description
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. However, if one wants to use these cli tools with multiple
products and multiple environments (prd, dev, etc.), it would be useful to be
able to switch contexts easily. In this situation, I have a simple shell script
wrapper that easily switches between settings for each environment. (like
mycli prd aws s3 ...
).
cmdcomp
can generate shell script completion files with config described in
YAML
, TOML
or JSON
.
In today's development, more and more cli tools are being used.
If you want to generate completion files for simple wrapper scripts, cmdcomp
can 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.
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.