MXS-1942: Use MaxScale version in MaxCtrl

Displaying the MaxScale version helps identify which package the
executable was bundled with. As the MaxCtrl source is a part of MaxScale,
there's no need for separate versioning.
This commit is contained in:
Markus Mäkelä
2018-07-05 10:57:09 +03:00
parent 9e039ed024
commit f5110209f7
3 changed files with 20 additions and 1 deletions

View File

@ -14,7 +14,9 @@
var fs = require('fs')
var program = require('yargs');
const maxctrl_version = '1.0.0';
// Note: The version.js file is generated at configuation time. If you are
// building in-source, manually create the file
const maxctrl_version = require('./version.js').version;
program
.version(maxctrl_version)