reporter

package
v0.0.0-...-eee4225 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg interface{})

Error prints error messages to console and terminates program

func Info

func Info(msg interface{})

Info prints general messages to console

func Success

func Success(msg interface{})

Success prints success messages to console

func Warn

func Warn(msg interface{})

Warn prints warning messages to console

Types

type Spinner

type Spinner struct {
	Spin *spinner.Spinner
}

Spinner is a wrapper for logging messages with a nice spinner

func (*Spinner) Error

func (s *Spinner) Error()

Error stops spinner and prints `✗` to console to indicate failure of a task and terminates program.

func (*Spinner) Info

func (s *Spinner) Info(msg interface{})

Info prints general messages to console and starts spinner

func (*Spinner) Success

func (s *Spinner) Success()

Success stops spinner and prints `✓` to console to indicate completion of a task.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL