MXS-1300: Add maxscale to show commands
The command shows general information about MaxScale.
This commit is contained in:
@ -84,6 +84,14 @@ exports.builder = function(yargs) {
|
|||||||
{'Commands': 'attributes.commands'}
|
{'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>')
|
.usage('Usage: show <command>')
|
||||||
.help()
|
.help()
|
||||||
.command('*', 'the default command', {}, () => {
|
.command('*', 'the default command', {}, () => {
|
||||||
|
Reference in New Issue
Block a user