Fork 0
A CLI tool to overwrite configuration files using profiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniele Tricoli 38e87c3802
Release 0.2.1
4 years ago
src Don't use expect 4 years ago
.gitignore Initial import 4 years ago
.travis.yml Add travis CI configuration 4 years ago
CHANGELOG.md Release 0.2.1 4 years ago
Cargo.lock Bump version to 0.2.0 4 years ago
Cargo.toml Bump version to 0.2.1 4 years ago
LICENSE Add license 4 years ago
README.md Add README 4 years ago



A CLI tool to overwrite configuration files using profiles.

The configuration file is parsed using a simplified parser for zeroc configuration.

Only keys in the configuration file are overwritten, if the profile contains a key not present in the configuration file it's ignored.


Given the following configuration file:

❯ cat conf.txt 
Author.Name = eriol
# This comment will be stripped out
Author.Like = rust, python

and the following profile p1.yaml:

# Yes, I like all of them.
Author.Like: rust, python, c++
The.cake.is: a lie # this will be ignored since not in the configuration file

conf-form will produce:

❯ conf-form --config conf.txt --profile p1.yaml 
Author.Name = eriol
Author.Like = rust, python, c++