console

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package console provides a mechanism for sending localized, stylized output to the console.

Index

Constants

This section is empty.

Variables

View Source
var (

	// OverrideEnv is the environment variable used to override color/emoji usage
	OverrideEnv = "MINIKUBE_IN_STYLE"
)

Functions

func Err

func Err(format string, a ...interface{})

Err writes a basic formatted string to stderr

func ErrLn

func ErrLn(format string, a ...interface{})

ErrLn writes a basic formatted string with a newline to stderr

func ErrStyle

func ErrStyle(style StyleEnum, format string, a ...interface{})

ErrStyle writes a stylized and formatted error message to stderr

func Failure

func Failure(format string, a ...interface{})

Failure is a shortcut for writing a styled failure message to stderr

func Fatal

func Fatal(format string, a ...interface{})

Fatal is a shortcut for writing a styled fatal message to stderr

func Out

func Out(format string, a ...interface{})

Out writes a basic formatted string to stdout

func OutLn

func OutLn(format string, a ...interface{})

OutLn writes a basic formatted string with a newline to stdout

func OutStyle

func OutStyle(style StyleEnum, format string, a ...interface{})

OutStyle writes a stylized and formatted message to stdout

func SetErrFile

func SetErrFile(w fdWriter)

SetErrFile configures which writer error output goes to.

func SetOutFile

func SetOutFile(w fdWriter)

SetOutFile configures which writer standard output goes to.

func Success

func Success(format string, a ...interface{})

Success is a shortcut for writing a styled success message to stdout

func Warning

func Warning(format string, a ...interface{})

Warning is a shortcut for writing a styled warning message to stderr

Types

type StyleEnum added in v1.1.1

type StyleEnum int
const (
	Happy StyleEnum = iota
	SuccessType
	FailureType
	Conflict
	FatalType
	Notice
	Ready
	Running
	Provisioning
	Restarting
	Reconfiguring
	Stopping
	Stopped
	WarningType
	Waiting
	WaitingPods
	Usage
	Launch
	Sad
	ThumbsUp
	Option
	Command
	LogEntry
	Crushed
	URL
	Documentation
	Issues
	Issue
	Check
	ISODownload
	FileDownload
	Caching
	StartingVM
	StartingNone
	Resetting
	DeletingHost
	Copying
	Connectivity
	Internet
	Mounting
	Celebrate
	ContainerRuntime
	Docker
	CRIO
	Containerd
	Permissions
	Enabling
	Shutdown
	Pulling
	Verifying
	VerifyingNoLine
	Kubectl
	Meh
	Embarrassed
	Tip
	Unmount
	MountOptions
	Fileserver
)

Jump to

Keyboard shortcuts

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