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:
@ -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', {}, () => {
|
||||
|
Reference in New Issue
Block a user