mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
10 lines
325 B
JavaScript
10 lines
325 B
JavaScript
var idPlugin = require('./id_plugin');
|
|
|
|
module.exports = function run(name) {
|
|
var action = require('../tasks/' + name);
|
|
return function () {
|
|
// call the action function with the plugin, then all
|
|
// renaining arguments from commander
|
|
action.apply(null, [idPlugin()].concat([].slice.apply(arguments)));
|
|
};
|
|
};
|