MXS-1300: Add module commands to MaxCtrl

Added inspection of module commands to MaxCtrl. The commands can't be
called yet.
This commit is contained in:
Markus Mäkelä
2017-07-10 11:13:37 +03:00
parent 1514ede4e1
commit e14aa729ab
3 changed files with 47 additions and 0 deletions

View File

@ -70,6 +70,12 @@ exports.builder = function(yargs) {
{'Name':'id'}
])
})
.command('commands', 'List module commands', {}, function() {
getCollection('maxscale/modules',[
{'Module':'id'},
{'Commands': 'attributes.commands[].id'}
])
})
.usage('Usage: list <command>')
.help()
.command('*', 'the default command', {}, () => {