Class: Output_Helper

Output_Helper()

new Output_Helper()

Helper for outputting information to the CLI in a uniform manner
Source:

Methods

(static) banner(message)

Creates a banner and a green info tag around a message.
Parameters:
Name Type Description
message String String to be enclosed by the banner
Source:

(static) debug(message)

Outputs a message when the debug flag is used.
Parameters:
Name Type Description
message String String to be output
Source:

(static) error(message)

Outputs all of a string in red.
Parameters:
Name Type Description
message String String to be output
Source:

(static) finish(done, value)

Writes a green done to the console and resolves the promise if passed.
Parameters:
Name Type Description
done function Promise callback passed from the function
value Object An object to be returned with resolve
Source:

(static) info(message)

Writes a message with a green info tag (note no new line is passed by default).
Parameters:
Name Type Description
message String A string to be output after the info tag
Source:

(static) skip(done, value)

Writes a yellow skip to the console and resolves the promise if passed.
Parameters:
Name Type Description
done function Promise callback passed from the function
value Object An object to be returned with resolve
Source:

(static) step(message)

Writes a message with a green info tag (note no new line is passed by default).
Parameters:
Name Type Description
message String A string to be output after the info tag
Source:

(static) warn(message)

Writes a message with a yellow warning tag (note no new line is passed by default).
Parameters:
Name Type Description
message String A string to be output after the warning tag
Source: