Categorygithub.com/kablamooss/go-cli-printer
modulepackage
0.0.0-20180823055052-e0a8f9f351c3
Repository: https://github.com/kablamooss/go-cli-printer.git
Documentation: pkg.go.dev

# Functions

Error prints an error to the screen.
No description provided by the author
Fatal prints an error in the exact same way as Error, except it prefixes with "Fatal", and the function ends with a panic.
Finish prints message to the console and stops the spinner with success.
Finish with formatted message.
Init the spinner with a verbose flag, and color.
No description provided by the author
Progress message with a spinner.
Progress with formatted message.
SetOutput to an io.Writer compatitble interface.
Step prints a line console and stops the spinner.
Step with formatted message.
Stop the spinner.
SubStep prints a line console, at a given indent and stops the spinner ignoreVerboseRule true, ensures the SubStep always prints.
SubStep with formatted message FIXME: The extra arguments for SubStep being between the format string and it's formatting arguments is rather awkward.
Test to set testing to true, to prevent exiting on Fatal errors.
Warn prints a warning to the screen.

# Variables

Default way of terminating (from Fatal) is to os.Exit, but allow this to be changed for the purposes of testing.