add options to runCommand

This commit is contained in:
Iuri Matias 2017-04-02 14:30:00 -04:00
parent d800c1cee0
commit 2373d14d6b
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ var Blockchain = function(options) {
this.client = new options.client({config: this.config, env: this.env}); 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); console.log(("running: " + cmd.underline).green);
return shelljs.exec(cmd); return shelljs.exec(cmd, options);
}; };
Blockchain.prototype.run = function() { Blockchain.prototype.run = function() {
@ -49,7 +49,7 @@ Blockchain.prototype.run = function() {
console.log("===============================================================================".magenta); console.log("===============================================================================".magenta);
var address = this.initChainAndGetAddress(); var address = this.initChainAndGetAddress();
this.client.mainCommand(address, function(cmd) { this.client.mainCommand(address, function(cmd) {
self.runCommand(cmd); self.runCommand(cmd, {async: true});
}); });
}; };