cmd

Methods

(static) runLive_(cmd, argsopt, onStdOut, onStdErr, options) → {Promise.<Object>}

Execute a shell command and lively output

Source:
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

Source:
Parameters:
Name Type Description
cmd string

Command line to execute

Returns:
Type:
string

(static) run_(cmd, options) → {Promise.<Object>}

Execute a shell command.

Source:
Parameters:
Name Type Description
cmd string

Command line to execute

options object
Returns:
Type:
Promise.<Object>