1
0
Fork 0
A CLI tool to overwrite configuration files using profiles
Go to file
Daniele Tricoli 14e103e04c Don't use expect 2018-11-21 22:30:30 +01:00
src Don't use expect 2018-11-21 22:30:30 +01:00
.gitignore Initial import 2018-11-16 01:33:03 +01:00
CHANGELOG.md Update CHANGELOG 2018-11-21 01:33:58 +01:00
Cargo.lock Bump version to 0.2.0 2018-11-21 01:30:43 +01:00
Cargo.toml Bump version to 0.2.0 2018-11-21 01:30:43 +01:00
LICENSE Add license 2018-11-19 01:31:38 +01:00
README.md Add README 2018-11-19 01:28:36 +01:00

README.md

conf-form

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.

Examples

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++