express-gateway
Version:
A microservices API gateway built on top of ExpressJS
20 lines (17 loc) • 586 B
JavaScript
const eg = require('../../eg');
module.exports = class extends eg.Generator {
constructor (args, opts) {
super(args, opts);
this.configureCommand({
command: ['credential:scopes <command> [options]', 'credential:scope'],
desc: 'Manage scopes for credentials',
builder: yargs => yargs
.reset()
.usage('Usage: $0 ' + process.argv[2] + ' <command> [options]')
.command(this.createSubCommand('add'))
.command(this.createSubCommand('remove'))
.command(this.createSubCommand('set'))
.demandCommand()
});
}
};