UNPKG

cli-engine

Version:
16 lines (10 loc) 678 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.commands = exports.topics = undefined; var _klawSync = require('klaw-sync'); var _klawSync2 = _interopRequireDefault(_klawSync); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const topics = exports.topics = [{ name: 'plugins', description: 'manage plugins' }, { name: 'update', description: 'update CLI' }]; const commands = exports.commands = (0, _klawSync2.default)(__dirname, { nodir: true }).filter(f => f.path.endsWith('.js')).filter(f => !f.path.endsWith('.test.js')).filter(f => f.path !== __filename).map(f => require(f.path));