Module: cmd

Source:
index.js

Methods


<static> run_(cmd, options)

Execute a shell command.

Parameters:
Name Type Description
cmd string

Command line to execute

options object
Source:
shell/cmd.js
Returns:
Type
Promise.<Object>

<static> runLive_(cmd [, args], onStdOut, onStdErr, options)

Execute a shell command and lively output

Parameters:
Name Type Argument Description
cmd string

Command line to execute

args Array <optional>

Arguments list *

onStdOut *
onStdErr *
options *
Source:
shell/cmd.js
Returns:
Type
Promise.<Object>

<static> runSync(cmd)

Execute a shell command synchronously

Parameters:
Name Type Description
cmd string

Command line to execute

Source:
shell/cmd.js
Returns:
Type
string