UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

33 lines (29 loc) 843 B
import { fromRoot } from '../../utils'; import list from './list'; import Logger from '../lib/logger'; import { parse } from './settings'; import logWarnings from '../lib/log_warnings'; function processCommand(command, options) { let settings; try { settings = parse(command, options); } catch (ex) { //The logger has not yet been initialized. console.error(ex.message); process.exit(64); // eslint-disable-line no-process-exit } const logger = new Logger(settings); logWarnings(settings, logger); list(settings, logger); } export default function pluginList(program) { program .command('list') .option( '-d, --plugin-dir <path>', 'path to the directory where plugins are stored', fromRoot('plugins') ) .description('list installed plugins') .action(processCommand); };