MXS-1300: Add maxscale to show commands
The command shows general information about MaxScale.
This commit is contained in:
parent
f4dacff27c
commit
4913cf1ec7
@ -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', {}, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user