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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c21d0dcb15a9ba873ba7ac4ebd9e6fa1355a6e70fe3f6084ed23723fb538c095
|
|
| MD5 |
632800d394741919c603241912137229
|
|
| BLAKE2b-256 |
7c081463c280df7228aa21afc210f10191038bb467da0938b4a77ed99d8c41bf
|
Provenance
The following attestation bundles were made for cli_cmdr-0.1.0.tar.gz:
Publisher:
publish.yml on cli-commander/cli-commander
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cli_cmdr-0.1.0.tar.gz -
Subject digest:
c21d0dcb15a9ba873ba7ac4ebd9e6fa1355a6e70fe3f6084ed23723fb538c095 - Sigstore transparency entry: 656622258
- Sigstore integration time:
-
Permalink:
cli-commander/cli-commander@05c06de4140c7ea6ac88864410315194cc1a935e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cli-commander
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05c06de4140c7ea6ac88864410315194cc1a935e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977cfd1fd5c6dfa3475836c53026b0db981f51b1d740c3c61da360ee2cc2593e
|
|
| MD5 |
a0fe85b731e21428131b7a6e9ec19d00
|
|
| BLAKE2b-256 |
dbea19f5ffee0721c8fe3e0c81aeac7207fcd2214ea598170fd20d841569666d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cli_cmdr-0.1.0-py3-none-any.whl -
Subject digest:
977cfd1fd5c6dfa3475836c53026b0db981f51b1d740c3c61da360ee2cc2593e - Sigstore transparency entry: 656622269
- Sigstore integration time:
-
Permalink:
cli-commander/cli-commander@05c06de4140c7ea6ac88864410315194cc1a935e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cli-commander
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05c06de4140c7ea6ac88864410315194cc1a935e -
Trigger Event:
release
-
Statement type: