text

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AugmentError

func AugmentError(description string, err error) error

AugmentError adds a description in the line above the error

func ErrorSeparator

func ErrorSeparator() string

ErrorSeparator creates some visual space

func PrettyError

func PrettyError(description string, err error) string

PrettyError formats an error with a description and message

func RunCommand

func RunCommand(commandName string) string

RunCommand outputs text to be shown at the beginning of each command

func Separator

func Separator() string

Separator creates some visual space

func SuccessWithTime

func SuccessWithTime(description string, timeStart time.Time) string

SuccessWithTime Returns a formatted string with a duration since a start time

func VerboseSection

func VerboseSection(description string) string

VerboseSection creates some visual space for a title in verbose mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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