Documentation ¶
Overview ¶
Package console provides a mechanism for sending localized, stylized output to the console.
Index ¶
- Variables
- func Err(format string, a ...interface{})
- func ErrLn(format string, a ...interface{})
- func ErrStyle(style StyleEnum, format string, a ...interface{})
- func Failure(format string, a ...interface{})
- func Fatal(format string, a ...interface{})
- func Out(format string, a ...interface{})
- func OutLn(format string, a ...interface{})
- func OutStyle(style StyleEnum, format string, a ...interface{})
- func SetErrFile(w fdWriter)
- func SetOutFile(w fdWriter)
- func Success(format string, a ...interface{})
- func Warning(format string, a ...interface{})
- type StyleEnum
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 ErrLn ¶
func ErrLn(format string, a ...interface{})
ErrLn writes a basic formatted string with a newline 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 OutLn ¶
func OutLn(format string, a ...interface{})
OutLn writes a basic formatted string with a newline 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.
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 )
Click to show internal directories.
Click to hide internal directories.