utils

package
v0.0.0-...-dc2a311 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WriteMain = headingBase.Copy(
		headings.WithColor(color.FgHiYellow),
	).Write
	WriteSub = headingBase.Copy(
		headings.WithAlignRight(),
		headings.WithColor(color.FgHiBlue),
	).Write
	WriteInfo = headingBase.Copy(
		headings.WithColor(color.FgHiMagenta),
	).Write
	WriteError = headingBase.Copy(
		headings.WithColor(color.FgHiRed),
	).Write
	WriteErrorSub = headingBase.Copy(
		headings.WithAlignRight(),
		headings.WithColor(color.FgHiRed),
	)
)

Functions

func CloseHandler

func CloseHandler()

func CloseHandlerWithCallback

func CloseHandlerWithCallback(cb func())

func CloseWithLog

func CloseWithLog(f io.Closer)

func CmdFailed

func CmdFailed(cmd *cobra.Command, err error)

func FileExists

func FileExists(filename string) bool

func PrintError

func PrintError(format string, err error)

func PrintErrorList

func PrintErrorList(errorMsgs []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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