mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user