Skip to main content

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.

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)

Source distribution for cmdcomp 2.6.1
File Size Uploaded
cmdcomp-2.6.1.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cmdcomp 2.6.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.6.1 This release

2 release files

2.6.0

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page