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?

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.

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.6.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

cmdcomp-2.6.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file cmdcomp-2.6.0.tar.gz.

File metadata

  • Download URL: cmdcomp-2.6.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for cmdcomp-2.6.0.tar.gz
Algorithm Hash digest
SHA256 6e0042d4e8829fb6af839ce1b2cdda8c7835bcf5d76c3e67cc0890149c74f206
MD5 081542f8755da92a1d16e547b03cc695
BLAKE2b-256 3335456c27f38956b826020f353b691eaa4298c79a4a102d4a99e4f98286d8f6

See more details on using hashes here.

File details

Details for the file cmdcomp-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: cmdcomp-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for cmdcomp-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c39951c7a6a687fcc77e0403f284ee0ad03d59695ad4eb21731357531dc5200b
MD5 0f83354b9955a27d5548f4c8701fc198
BLAKE2b-256 5545c7619de3ee7bc3e9b67afe890ff845a822a873b347b5f61ad40748cccc76

See more details on using hashes here.

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