mirror of https://github.com/embarklabs/embark.git
add options to runCommand
This commit is contained in:
parent
d800c1cee0
commit
2373d14d6b
|
@ -35,9 +35,9 @@ var Blockchain = function(options) {
|
|||
this.client = new options.client({config: this.config, env: this.env});
|
||||
};
|
||||
|
||||
Blockchain.prototype.runCommand = function(cmd) {
|
||||
Blockchain.prototype.runCommand = function(cmd, options) {
|
||||
console.log(("running: " + cmd.underline).green);
|
||||
return shelljs.exec(cmd);
|
||||
return shelljs.exec(cmd, options);
|
||||
};
|
||||
|
||||
Blockchain.prototype.run = function() {
|
||||
|
@ -49,7 +49,7 @@ Blockchain.prototype.run = function() {
|
|||
console.log("===============================================================================".magenta);
|
||||
var address = this.initChainAndGetAddress();
|
||||
this.client.mainCommand(address, function(cmd) {
|
||||
self.runCommand(cmd);
|
||||
self.runCommand(cmd, {async: true});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue