return cmd result in executeCmd callback

This commit is contained in:
Iuri Matias 2018-03-15 16:34:30 -04:00
parent 93b636036d
commit cd9c3c8317
1 changed files with 4 additions and 1 deletions

View File

@ -358,11 +358,14 @@ class Dashboard {
this.input.focus();
}
executeCmd(cmd) {
executeCmd(cmd, cb) {
const self = this;
self.logText.log('console> '.bold.green + cmd);
self.console.executeCmd(cmd, function (result) {
self.logText.log(result);
if (cb) {
cb(result);
}
});
}