Methods
(static) runLive_(cmd, argsopt, onStdOut, onStdErr, options) → {Promise.<Object>}
Execute a shell command and lively output
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cmd |
string
|
Command line to execute |
|
args |
Array
|
<optional> |
Arguments list * |
onStdOut |
*
|
|
|
onStdErr |
*
|
||
options |
*
|
Returns:
- Type:
-
Promise.<Object>
(static) runSync(cmd) → {string}
Execute a shell command synchronously
Parameters:
Name | Type | Description |
---|---|---|
cmd |
string
|
Command line to execute |
Returns:
- Type:
-
string