run-bash
v1.0.1
Published
The sample tool for running unix code in nodejs.
Downloads
6
Readme
runExec
The sample tool for running unix code in nodejs
usage
var instructionList = ['git branch', 'git reset --hard origin/master'];
var option = {
webRoot: '../fake-natoo'
};
var errCode = yield runTask(instructionList, option);
Option
| param | type | default | value | description | | :-------- | --------:| :------: | :------: | :------: | | webRoot | String | null |/ | exec run path| | isAsync | Boolen | false |true/false| /| | showOutput| Boolen | false |true/false|/|