Documentation ¶
Overview ¶
Package out provides a mechanism for sending localized, stylized output to the console.
Index ¶
- Constants
- Variables
- func ApplyTemplateFormatting(style StyleEnum, useColor bool, format string, a ...V) string
- func DisplayError(msg string, err error)
- func Err(format string, a ...interface{})
- func ErrLn(format string, a ...interface{})
- func ErrT(style StyleEnum, format string, a ...V)
- func FailureT(format string, a ...V)
- func FatalT(format string, a ...V)
- func Ln(format string, a ...interface{})
- func LogEntries(msg string, err error, entries map[string][]string)
- func SetErrFile(w fdWriter)
- func SetOutFile(w fdWriter)
- func String(format string, a ...interface{})
- func SuccessT(format string, a ...V)
- func T(style StyleEnum, format string, a ...V)
- func WarningT(format string, a ...V)
- type StyleEnum
- type V
Constants ¶
const MaxLogEntries = 3
MaxLogEntries controls the number of log entries to show for each source
Variables ¶
var (
// OverrideEnv is the environment variable used to override color/emoji usage
OverrideEnv = "MINIKUBE_IN_STYLE"
)
Functions ¶
func ApplyTemplateFormatting ¶ added in v1.10.0
ApplyTemplateFormatting applies formatting to the provided template
func DisplayError ¶ added in v1.10.0
DisplayError prints the error and displays the standard minikube error messaging
func ErrLn ¶
func ErrLn(format string, a ...interface{})
ErrLn writes a basic formatted string with a newline to stderr
func Ln ¶
func Ln(format string, a ...interface{})
Ln writes a basic formatted string with a newline to stdout
func LogEntries ¶ added in v1.10.0
LogEntries outputs an error along with any important log entries.
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 String ¶
func String(format string, a ...interface{})
String writes a basic formatted string to stdout
Types ¶
type StyleEnum ¶
type StyleEnum int
StyleEnum is an enumeration of Style
const ( AddonDisable StyleEnum = iota AddonEnable Caching Celebrate Celebration Check Command Conflict Confused Connectivity Containerd ContainerRuntime Copying CRIO Deleted DeletingHost Docker Documentation DryRun Embarrassed Empty Enabling FailureType FatalType FileDownload Fileserver Happy HealthCheck Internet ISODownload Issue Issues Kubectl Launch LogEntry Meh Mounting MountOptions New Notice Option Pause Permissions Provisioner Provisioning Pulling Ready Resetting Restarting Running Sad Shrug Shutdown Sparkle StartingNone StartingVM Stopped Stopping SuccessType ThumbsDown ThumbsUp Tip Unmount Unpause URL Usage Verifying VerifyingNoLine Waiting WaitingPods Warning Workaround )
All the Style constants available