2 releases
| 0.1.1 | Nov 17, 2025 |
|---|---|
| 0.1.0 | Sep 6, 2025 |
#2249 in Command line utilities
14KB
275 lines
colorctl
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.
Installation
Build from source with Cargo:
cargo install --path .
Usage
colorctl [COMMAND] [ARGS]
It finds variables defined in $[] symbols to substitute
Commands
-
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 variable
-
apps
Manage applications (template + target pairs).colorctl apps→ List applications\colorctl apps +appname=template_path,target_path→ Add app\colorctl apps -appname→ Remove app
-
edit
Open an app's template in your$EDITOR.colorctl edit→ Pick an app withfzfand edit its template\colorctl edit app1 app2→ Edit specific apps
-
help
Show usage information.
Example
# Add a variable
colorctl vars +color=blue
# Add an app (template, target)
colorctl apps +nvim=~/Templates/colorctl/init.vim,~/.config/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.
Dependencies
~9–24MB
~218K SLoC