-
Notifications
You must be signed in to change notification settings - Fork 0
/
marlin_tool.js
23 lines (14 loc) · 919 Bytes
/
marlin_tool.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const {ConfigParser} = require('./ConfigParser');
const cfgDiffer = require('./ConfigDiffer');
const ownCfgParser = new ConfigParser('Configuration_1.1.4.h');
const newCfgParser = new ConfigParser('Configuration_1.1.6.h');
// find all key which are in the new cfg but not in the old one
const newCfgsDiff = cfgDiffer.notInCfg(newCfgParser, ownCfgParser);
cfgDiffer.diffDumper('Following keys are not in the old cfg please check for them after migration', newCfgsDiff);
// find all keys in own cfg which are not in the new one
const oldCfgsDiff = cfgDiffer.notInCfg(ownCfgParser, newCfgParser);
cfgDiffer.diffDumper('Following keys are not in the new cfg', oldCfgsDiff);
// find all with diffrent values
let diffrentValues = cfgDiffer.diffrentValue(ownCfgParser,newCfgParser);
cfgDiffer.valuesDiffDumper(diffrentValues);
cfgDiffer.generateMergedCfgFile(newCfgParser,diffrentValues,'Configuration_generated.h');