UNPKG

express-gateway

Version:

A microservices API gateway built on top of ExpressJS

19 lines (16 loc) 511 B
const eg = require('../../eg'); module.exports = class extends eg.Generator { constructor (args, opts) { super(args, opts); this.configureCommand({ command: ['plugins <command> [options]', 'plugin'], desc: 'Manage plugins', builder: yargs => yargs .reset() .usage('Usage: $0 ' + process.argv[2] + ' <command> [options]') .command(this.createSubCommand('install')) .command(this.createSubCommand('configure')) .demandCommand() }); } };