| Crates.io | colorctl |
| lib.rs | colorctl |
| version | 0.1.0 |
| created_at | 2025-09-06 04:49:02.685779+00 |
| updated_at | 2025-09-06 04:49:02.685779+00 |
| description | Simple variable substitution based templating |
| homepage | https://github.com/mavenried |
| repository | https://github.com/mavenried/colorctl |
| max_upload_size | |
| id | 1826736 |
| size | 32,471 |
A simple configuration templating tool written in Rust. It allows you to define variables and application templates, then apply them to generate real configuration files.
Build from source with Cargo:
cargo install --path .
colorctl [COMMAND] [ARGS]
It finds variables defined in $[] symbols to substitute
apply
Apply all templates with the current variables.
vars
Manage variables.
colorctl vars → List variables\colorctl vars +name=value → Add or update variable\colorctl vars -name → Remove variableapps
Manage applications (template + target pairs).
colorctl apps → List applications\colorctl apps +appname=template_path,target_path → Add app\colorctl apps -appname → Remove appedit
Open an app's template in your $EDITOR.
colorctl edit → Pick an app with fzf and edit its template\colorctl edit app1 app2 → Edit specific appshelp
Show usage information.
# Add a variable
colorctl vars +color=blue
# Add an app (template, target)
colorctl apps +nvim=~/.config/nvim/init.vim,~/.cache/nvim/init.vim
# Apply all configs
colorctl apply
This will substitute variables like $[color] inside your template
files and write the processed output to the target files.