MXS-1300: Make output optional

Minor refactoring to the core library to allow multiple calls from within
the same program.

Added --quiet option to silence output so that tests aren't so
verbose. Currently this only works on UNIX based systems.
This commit is contained in:
Markus Mäkelä
2017-07-14 16:36:59 +03:00
parent ec5b0fea39
commit d938dcc701
18 changed files with 116 additions and 89 deletions

View File

@ -22,5 +22,5 @@ if (process.argv[0] == process.execPath) {
process.argv.shift()
}
maxctrl(process.argv)
maxctrl.execute(process.argv)
.then(function(out) {}, function(out) {})