From 4913cf1ec73f752d3f37b50e4a687ca9ad025eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 7 Jul 2017 11:16:13 +0300 Subject: [PATCH] MXS-1300: Add maxscale to show commands The command shows general information about MaxScale. --- client/maxctrl/lib/show.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/maxctrl/lib/show.js b/client/maxctrl/lib/show.js index a00f6c79c..1c44917a9 100644 --- a/client/maxctrl/lib/show.js +++ b/client/maxctrl/lib/show.js @@ -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 ') .help() .command('*', 'the default command', {}, () => {