modulepackage
0.0.0-20160423044023-53aa38ecf6ac
Repository: https://github.com/vrecan/mergeforward.git
Documentation: pkg.go.dev
# README
MergeForward
Simple tool to merge configuration files taking values from the src and adding them to the destination file while still keeping the new keys.
Example YAML:
key: custom
key2: default
list:
- !!OBJECT
key: custom
key2: default
- !!OBJECT
key: default
key2: default
destination conf:
key: default
key2: default
new: default
list:
- !!OBJECT
key: default
key2: default
key3: default
- !!OBJECT
key: default
key2: default
- !!OBJECT
key: default
key2: default
result:
key: custom
key2: default
new: default
list:
- !!OBJECT
key: custom
key2: default
key3: default
- !!OBJECT
key: default
key2: default
- !!OBJECT
key: default
key2: default