mirror of https://github.com/embarklabs/embark.git
return cmd result in executeCmd callback
This commit is contained in:
parent
93b636036d
commit
cd9c3c8317
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue