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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmdcomp-2.6.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.0 Linux/6.8.0-1020-azure

File hashes

Hashes for cmdcomp-2.6.1.tar.gz
Algorithm Hash digest
SHA256 3cb699c9c6e29b99c2d112b13913c70e6c8550c53e8a37621faa5d2b332e81eb
MD5 5229a30dc3208048f3dbb58b9f092267
BLAKE2b-256 c6a690216ab3445fbbe157b1e441f3212cbacffff627903fd0a9b937a2bea332

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cmdcomp-2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c835571babd7a1aee520e5d261977349879e4bcacc862d99221d574d152679
MD5 82a76fd2e9dc3a129bffcedd5b39641e
BLAKE2b-256 8b17d63031c8570e3c97143faa17f130fb92243d48c980dcb319779e531c92e5

See more details on using hashes here.

Supported by

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