Skip to main content

A CLI tool for version controlled aliases inspired by dbt selectors

Project description

cli-commander

A CLI tool for version controlled aliases inspired by dbt selectors.

Installation

Install via pip:

pip install cli-commander

Or install from source:

git clone https://github.com/cli-commander/cli-commander.git
cd cli-commander
pip install -e .

Usage

Configuration

cli-command looks for a configuration file named cli-commander.yml in either:

  • Your current directory (.), or
  • Your home directory (~/.cli-commander/)

The tool will check the local directory first, then fall back to the home directory.

You can autocreate this with a template by running:

cmdr init

Configuration Format

selectors:
  selector-name:
    description: "Description of what this command does"
    command: "command to execute"

Example Configuration

selectors:
  test:
    description: "Run all tests"
    command: "pytest"
  
  build:
    description: "Build the project"
    command: "python setup.py build"
  
  lint:
    description: "Lint code with flake8"
    command: "flake8 ."

Running Commands

Execute a selector using the cmdr command:

cmdr <selector-name>

For example:

cmdr test
cmdr build
cmdr lint

List Available Selectors

To see all available selectors from your configuration:

cmdr --list

License

MIT License - see LICENSE file for details.

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

cli_cmdr-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

cli_cmdr-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cli_cmdr-0.1.0.tar.gz.

File metadata

  • Download URL: cli_cmdr-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cli_cmdr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c21d0dcb15a9ba873ba7ac4ebd9e6fa1355a6e70fe3f6084ed23723fb538c095
MD5 632800d394741919c603241912137229
BLAKE2b-256 7c081463c280df7228aa21afc210f10191038bb467da0938b4a77ed99d8c41bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for cli_cmdr-0.1.0.tar.gz:

Publisher: publish.yml on cli-commander/cli-commander

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cli_cmdr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cli_cmdr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cli_cmdr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 977cfd1fd5c6dfa3475836c53026b0db981f51b1d740c3c61da360ee2cc2593e
MD5 a0fe85b731e21428131b7a6e9ec19d00
BLAKE2b-256 dbea19f5ffee0721c8fe3e0c81aeac7207fcd2214ea598170fd20d841569666d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cli_cmdr-0.1.0-py3-none-any.whl:

Publisher: publish.yml on cli-commander/cli-commander

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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