A configuratable config manager for your packages.
Project description
Config Manager (cmgr)
cmgr is a command-line tool to manage configurations and packages. It's designed to be simple and easy to use. It's written in Python and can be installed via pip and pipx.
Get Started
pip install cmgr # Install cmgr
cmgr # Run cmgr. Detect all `cmgr.toml` under current folder.
Installation
# using pip
pip install --user cmgr # install cmgr
pip install --upgrade cmgr # upgrade cmgr
pip uninstall cmgr # uninstall cmgr
# using pipx
pipx install cmgr # install cmgr
pipx upgrade cmgr # upgrade cmgr
pipx uninstall cmgr # uninstall cmgr
Usage
# Shell
cmgr --help # Command-line help message.
cmgr --version # Show version information.
cmgr # Run cgmr. Will looking for all cmgr.toml under current folder.
cmgr -p/--profile '/path/to/root/cmgr.toml' # Run cmgr with specific profile.
cmgr -r/--root '/path/to/root/' # Run cmgr with specific root folder.
cmgr -n/--name 'my-cmgr.toml' # Run cmgr with specific profile's filename.
# Install package
cmgr install ping3 # Install a package named ping3. Using default package manager.
cmgr install ping3 -c/--command 'ping3' # Use specific command to detect if the package is installed before install.
cmgr install ping3 -m/--manager 'pip' # Use specific package manager to install the package.
# Copy configuration
cmgr config "bash.conf" "~/.bashrc" # Copy `./bash.conf` to `~/.bashrc`.
cmgr config "bash.conf" "~/.bashrc" -n/--name "BASH" # Copy `bash.conf` to `~/` as `.bashrc` with specific name in output.
Profile
- A cmgr profile example: cmgr-example.toml
- A minimal cmgr profile: cmgr-minimal.toml
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
cmgr-0.0.15.tar.gz
(7.2 kB
view details)
Built Distribution
cmgr-0.0.15-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file cmgr-0.0.15.tar.gz
.
File metadata
- Download URL: cmgr-0.0.15.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f908cdd59a5d38a3a659d4d553238e2a2820b4de878fb91ac4fd65922e4d40e5 |
|
MD5 | 76cf08d2f0ca117f98ae2345a16942c4 |
|
BLAKE2b-256 | 9b37f69ed17c512e9b11d37c3dfe5c5b0b431e4ad9e222d1dd08c4752c56a8b5 |
File details
Details for the file cmgr-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: cmgr-0.0.15-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b9b2e0a0c5573c41bc4c048770f2104eabdb5940750e9c702e19829ff91f4c |
|
MD5 | 4b7f6c068885dbf45f7e0a3317744bbd |
|
BLAKE2b-256 | 1863226288875677f1f422a6fbd1c7fd184bb4f52100e2be887923e705c63ba4 |