UNPKG

express-gateway

Version:

A microservices API gateway built on top of ExpressJS

18 lines (15 loc) 447 B
const eg = require('../../eg'); module.exports = class extends eg.Generator { constructor (args, opts) { super(args, opts); this.configureCommand({ command: 'gateway <command> [options]', desc: 'Manage a gateway', builder: yargs => yargs .reset() .usage('Usage: $0 ' + process.argv[2] + ' <command> [options]') .command(this.createSubCommand('create')) .demandCommand() }); } };