[ACS-2197] changelog generation with ADF CLI (#7350)

* print app version instead of error

* initial diff implementation

* markdown rendering

* render md output

* html output

* configurable exclude filter

* provide docs
This commit is contained in:
Denys Vuika
2021-11-05 08:24:53 +00:00
committed by GitHub
parent 3421600e16
commit 695c6cd8d6
7 changed files with 296 additions and 1 deletions

View File

@@ -5,12 +5,18 @@ const minimist = require('minimist');
const path = require('path');
const fs = require('fs');
function printHelp() {
const pkgData = fs.readFileSync(path.resolve(__dirname, '..', 'package.json'));
const { name, version } = JSON.parse(pkgData);
console.log(`${name} v${version}`);
}
const args = minimist(process.argv.slice(2), {
boolean: ['verbose']
});
if (args._.length === 0) {
console.error('Error: no commands provided');
printHelp();
process.exit(1);
}