MXS-1300: Add create/destroy commands

Servers, monitors and listeners can now be created and destroyed with
MaxCtrl.

Exported lodash as a part of the common.js module so that commands can use
it to construct objects. If there are enough common uses of this library,
some of the object construction could be moved to the common module.
This commit is contained in:
Markus Mäkelä
2017-07-03 21:41:06 +03:00
parent 35745ee925
commit 7db1f4c768
4 changed files with 205 additions and 1 deletions

View File

@ -56,6 +56,8 @@ program
.command(require('./lib/clear.js'))
.command(require('./lib/enable.js'))
.command(require('./lib/disable.js'))
.command(require('./lib/create.js'))
.command(require('./lib/destroy.js'))
.help()
.demandCommand(1, 'At least one command is required')
.command('*', 'the default command', {}, () => {