1.1.2 • Published 9 years ago
yaml-merger v1.1.2
yaml-merger
Merge 2 yaml files and outputs to console or given output file.
Installation
$ npm install -g yaml-mergerUsage
$ yaml-merger -h
Merge 2 yaml files.
Usage
$ yaml-merger -i <fileA.yaml> -i <fileB.yaml> [-o output.yaml]
Options
-i, --input Input files, define 2
-o, --output Output file, if omited outputs to console
--mergePath Change root path in first file to be merged in
-v Verbose console logging
-h, --help Shows this helpExamples
testA.yaml file:
keyA: aValue
keyDeep:
a: deepA
b: deepB
keyArray:
- itemOne
- itemTwo
- 3testB.yaml file:
keyA: aValue
keyDeep:
a: deepX
keyArray:
- itemFour$ yaml-merger fileA.yaml fileB.yaml
keyA: aValue
keyDeep:
a: deepX
b: deepB
keyArray:
- itemOne
- itemTwo
- 3
- itemFour