CLI: Search perf test data (#17422)
* Search perf testdata cli task * Test index * REmoved test index
This commit is contained in:
@@ -7,6 +7,7 @@ import { releaseTask } from './tasks/grafanaui.release';
|
||||
import { changelogTask } from './tasks/changelog';
|
||||
import { cherryPickTask } from './tasks/cherrypick';
|
||||
import { precommitTask } from './tasks/precommit';
|
||||
import { searchTestDataSetupTask } from './tasks/searchTestDataSetup';
|
||||
|
||||
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
|
||||
|
||||
@@ -72,6 +73,14 @@ program
|
||||
await execTask(precommitTask)({});
|
||||
});
|
||||
|
||||
program
|
||||
.command('searchTestData')
|
||||
.option('-c, --count <number_of_dashboards>', 'Specify number of dashboards')
|
||||
.description('Setup test data for search')
|
||||
.action(async cmd => {
|
||||
await execTask(searchTestDataSetupTask)({ count: cmd.count });
|
||||
});
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
if (program.depreciate && program.depreciate.length === 2) {
|
||||
|
||||
Reference in New Issue
Block a user