ConfigForge
ConfigForge is a Rust CLI tool for converting, inspecting, and validating configuration files.
The first implementation milestone supports conversion between:
Install
cargo install config-forge
Usage
config-forge --help
config-forge inspect Cargo.toml
config-forge convert app.toml -o app.yaml
config-forge convert app.yaml --to json
config-forge convert app.toml --to yaml --check
config-forge validate app.yaml
config-forge get app.toml server.port
config-forge get app.yaml items.0.name
config-forge get app.toml server --to yaml
Planned commands:
config-forge merge base.yaml override.yaml -o merged.yaml
config-forge diff old.toml new.toml
When writing converted content to stdout, pass --to so the output format is explicit:
config-forge convert app.toml --to json
ConfigForge does not overwrite existing output files by default. Pass --overwrite when replacing a file is intentional:
config-forge convert app.toml -o app.yaml --overwrite
get reads values by dot path. Numeric path segments index arrays:
config-forge get app.yaml server.port
config-forge get app.yaml items.0.name
Package Check
Before publishing a release build:
cargo publish -p config-forge --dry-run
Release tags use this format:
git tag config-forge-v0.1.2
git push <remote> config-forge-v0.1.2