|
@@ -5,6 +5,7 @@ import { startTask } from './tasks/core.start';
|
|
|
import { buildTask } from './tasks/grafanaui.build';
|
|
import { buildTask } from './tasks/grafanaui.build';
|
|
|
import { releaseTask } from './tasks/grafanaui.release';
|
|
import { releaseTask } from './tasks/grafanaui.release';
|
|
|
import { changelogTask } from './tasks/changelog';
|
|
import { changelogTask } from './tasks/changelog';
|
|
|
|
|
+import { cherryPickTask } from './tasks/cherrypick';
|
|
|
|
|
|
|
|
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
|
|
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
|
|
|
|
|
|
|
@@ -40,7 +41,7 @@ program
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
program
|
|
program
|
|
|
- .command('core:changelog')
|
|
|
|
|
|
|
+ .command('changelog')
|
|
|
.option('-m, --milestone <milestone>', 'Specify milestone')
|
|
.option('-m, --milestone <milestone>', 'Specify milestone')
|
|
|
.description('Builds changelog markdown')
|
|
.description('Builds changelog markdown')
|
|
|
.action(async cmd => {
|
|
.action(async cmd => {
|
|
@@ -54,6 +55,13 @@ program
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+program
|
|
|
|
|
+ .command('cherrypick')
|
|
|
|
|
+ .description('Helps find commits to cherry pick')
|
|
|
|
|
+ .action(async cmd => {
|
|
|
|
|
+ await execTask(cherryPickTask)({});
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
program.parse(process.argv);
|
|
program.parse(process.argv);
|
|
|
|
|
|
|
|
if (program.depreciate && program.depreciate.length === 2) {
|
|
if (program.depreciate && program.depreciate.length === 2) {
|