Updated changelog task

This commit is contained in:
Torkel Ödegaard
2019-03-06 12:28:07 +01:00
parent 72ca51dadc
commit 153b3e5cf5
2 changed files with 31 additions and 4 deletions
+9 -1
View File
@@ -41,9 +41,17 @@ program
program
.command('core:changelog')
.option('-m, --milestone <milestone>', 'Specify milestone')
.description('Builds changelog markdown')
.action(async cmd => {
await execTask(changelogTask)({});
if (!cmd.milestone) {
console.log('Please specify milestone, example: --m 6.0.1');
return;
}
await execTask(changelogTask)({
milestone: cmd.milestone,
});
});
program.parse(process.argv);