Skip to main content

command shell completion file generator.

Project description

Command Completion Generator Tool

docs test pypi package docker version

cmdcomp generate command shell completion file (bash or zsh) from config JSON/YAML/TOML file.

image

Why was cmdcomp created?

Completion files for many cli tools (aws, gcloud, etc.) are provided by self. However, if you want to use these cli tools in 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 to switches settings for each environment easily. (like mycli prd aws s3 ...).

cmdcomp can generate completion files for your shell script using configuration wittened by YAML or TOML or JSON.

In today's development, more and more cli tools be used.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdcomp-2.5.0.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

cmdcomp-2.5.0-py3-none-any.whl (23.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page