Documentation ¶
Index ¶
- Constants
- func DisableLogColor()
- func DisablePrettyLog()
- func EnableLogColor()
- func FitText(text string, options FitTextOptions) string
- func FormattedLogF(w io.Writer, format string, a ...interface{}) (int, error)
- func GetErrStream() io.Writer
- func GetOutStream() io.Writer
- func GetRawStreamsOutputMode() bool
- func IndentDown()
- func IndentUp()
- func Init() error
- func IsTerminal() bool
- func LogErrorF(format string, a ...interface{})
- func LogErrorLn(a ...interface{})
- func LogF(format string, a ...interface{})
- func LogHighlightF(format string, a ...interface{})
- func LogHighlightLn(a ...interface{})
- func LogInfoF(format string, a ...interface{})
- func LogInfoLn(a ...interface{})
- func LogLn(a ...interface{})
- func LogProcess(msg string, options LogProcessOptions, processFunc func() error) error
- func LogProcessEnd(options LogProcessEndOptions)
- func LogProcessFail(options LogProcessEndOptions)
- func LogProcessInline(msg string, processFunc func() error) error
- func LogProcessStart(msg string, options LogProcessStartOptions)
- func LogProcessStepEnd(msg string)
- func LogSecondaryProcess(msg string, options LogProcessOptions, processFunc func() error) error
- func LogSecondaryProcessInline(msg string, processFunc func() error) error
- func LogServiceF(format string, a ...interface{})
- func LogServiceLn(a ...interface{})
- func MuteErr()
- func MuteOut()
- func OptionalLnModeOn()
- func RawStreamsOutputModeOff()
- func RawStreamsOutputModeOn()
- func SetTag(value string, colorizeFunc func(...interface{}) string)
- func SetTerminalWidth(value int)
- func TerminalContentWidth() int
- func TerminalWidth() int
- func UnmuteErr()
- func UnmuteOut()
- func WithFittedStreamsOutputOn(f func() error) error
- func WithIndent(f func() error) error
- func WithRawStreamsOutputModeOn(f func() error) error
- func WithTag(value string, colorizeFunc func(...interface{}) string, f func() error) error
- func WithoutIndent(decoratedFunc func() error) error
- type FitTextOptions
- type LogProcessEndOptions
- type LogProcessOptions
- type LogProcessStartOptions
- type LogProcessStepEndOptions
- type WriterProxy
Constants ¶
View Source
const (
DefaultTerminalWidth = 140
)
Variables ¶
This section is empty.
Functions ¶
func DisableLogColor ¶
func DisableLogColor()
func DisablePrettyLog ¶
func DisablePrettyLog()
func EnableLogColor ¶
func EnableLogColor()
func FitText ¶
func FitText(text string, options FitTextOptions) string
func GetErrStream ¶
func GetOutStream ¶
func GetRawStreamsOutputMode ¶
func GetRawStreamsOutputMode() bool
func IndentDown ¶
func IndentDown()
func IsTerminal ¶
func IsTerminal() bool
func LogErrorLn ¶
func LogErrorLn(a ...interface{})
func LogHighlightF ¶
func LogHighlightF(format string, a ...interface{})
func LogHighlightLn ¶
func LogHighlightLn(a ...interface{})
func LogProcess ¶
func LogProcess(msg string, options LogProcessOptions, processFunc func() error) error
func LogProcessEnd ¶
func LogProcessEnd(options LogProcessEndOptions)
func LogProcessFail ¶
func LogProcessFail(options LogProcessEndOptions)
func LogProcessInline ¶
func LogProcessStart ¶
func LogProcessStart(msg string, options LogProcessStartOptions)
func LogProcessStepEnd ¶
func LogProcessStepEnd(msg string)
func LogSecondaryProcess ¶
func LogSecondaryProcess(msg string, options LogProcessOptions, processFunc func() error) error
func LogServiceF ¶
func LogServiceF(format string, a ...interface{})
func LogServiceLn ¶
func LogServiceLn(a ...interface{})
func OptionalLnModeOn ¶
func OptionalLnModeOn()
func RawStreamsOutputModeOff ¶
func RawStreamsOutputModeOff()
func RawStreamsOutputModeOn ¶
func RawStreamsOutputModeOn()
func SetTerminalWidth ¶
func SetTerminalWidth(value int)
func TerminalContentWidth ¶
func TerminalContentWidth() int
func TerminalWidth ¶
func TerminalWidth() int
func WithIndent ¶
func WithoutIndent ¶
Types ¶
type FitTextOptions ¶
type LogProcessEndOptions ¶
type LogProcessEndOptions struct {
WithoutLogOptionalLn bool
}
type LogProcessOptions ¶
type LogProcessStartOptions ¶
type LogProcessStartOptions struct {
ColorizeMsgFunc func(...interface{}) string
}
type WriterProxy ¶
Click to show internal directories.
Click to hide internal directories.