MXS-1300: Add maxscale to show commands

The command shows general information about MaxScale.
This commit is contained in:
Markus Mäkelä 2017-07-07 11:16:13 +03:00
parent f4dacff27c
commit 4913cf1ec7

View File

@ -84,6 +84,14 @@ exports.builder = function(yargs) {
{'Commands': 'attributes.commands'}
])
})
.command('maxscale', 'Show MaxScale information', {}, function(argv) {
getResource('maxscale', [
{'Version': 'attributes.version'},
{'Commit': 'attributes.commit'},
{'Started At': 'attributes.started_at'},
{'Uptime': 'attributes.uptime'}
])
})
.usage('Usage: show <command>')
.help()
.command('*', 'the default command', {}, () => {