Module: deployr-cli

The DeployR command line interface, a tool for running useful DeployR utilities.

Source:

Members

(static) name

Expose the CLI name di.

Properties:
Name Type Description
name String

The CLI name.

Source:

Methods

(static) clearScreen()

Clears stdout and bring the cursor to postion 0.

Source:

(static) exec(command, callback)

Runs the specified command in the di CLI.

Parameters:
Name Type Description
command String

Command to execute

callback function

Continuation to pass control to when complete.

Source:

(static) exit()

Ends the di process with the a common exit message.

Source:

(static) findHelp()

Prompts user with a few helpful resources, then opens it in their browser.

Source:

(static) goto()

Menu selection to run commands.

Source:

(static) home()

Display the home di screen with the intial set of options.

Source:

(static) settings()

Prompts user with setting options.

Source:

(static) setup(callback)

Sets up the instances of the Resource clients for di. there is no io here, yet this function is ASYNC.

Parameters:
Name Type Description
callback function

continuation to pass control to when complete.

Source:

(static) showError(command, err, shallow)

Displays the err to the user for the command supplied.

Parameters:
Name Type Description
command String

Command which has errored.

err Error

Error received for the command.

shallow Boolean

Indicate if a deep stack should be displayed

Source:

(static) start(callback)

Starts the di CLI and runs the specified command.

Parameters:
Name Type Description
callback function

Continuation to pass control to when complete.

Source: