Versions in this module Expand all Collapse all v0 v0.12.68 Aug 31, 2023 Changes in this version + var ActiveProgressBarPrinters []*ProgressbarPrinter + var Black = FgBlack.Sprint + var Blue = FgBlue.Sprint + var Cyan = FgCyan.Sprint + var Debug = PrefixPrinter + var DefaultArea = AreaPrinter + var DefaultBarChart = BarChartPrinter + var DefaultBasicText = BasicTextPrinter + var DefaultBigText = BigTextPrinter + var DefaultBox = BoxPrinter + var DefaultBulletList = BulletListPrinter + var DefaultCenter = CenterPrinter + var DefaultHeader = HeaderPrinter + var DefaultInteractiveConfirm = InteractiveConfirmPrinter + var DefaultInteractiveContinue = InteractiveContinuePrinter + var DefaultInteractiveMultiselect = InteractiveMultiselectPrinter + var DefaultInteractiveSelect = InteractiveSelectPrinter + var DefaultInteractiveTextInput = InteractiveTextInputPrinter + var DefaultLogger = Logger + var DefaultMultiPrinter = MultiPrinter + var DefaultPanel = PanelPrinter + var DefaultParagraph = ParagraphPrinter + var DefaultProgressbar = ProgressbarPrinter + var DefaultSection = SectionPrinter + var DefaultSpinner = SpinnerPrinter + var DefaultTable = TablePrinter + var DefaultTree = TreePrinter + var Description = PrefixPrinter + var ErrHexCodeIsInvalid = errors.New("hex code is not valid") + var ErrTerminalSizeNotDetectable = errors.New("terminal size could not be detected - using fallback value") + var Error = PrefixPrinter + var FallbackTerminalHeight = 10 + var FallbackTerminalWidth = 80 + var Fatal = PrefixPrinter + var Gray = FgGray.Sprint + var GrayBoxStyle = NewStyle(BgGray, FgLightWhite) + var Green = FgGreen.Sprint + var Info = PrefixPrinter + var LightBlue = FgLightBlue.Sprint + var LightCyan = FgLightCyan.Sprint + var LightGreen = FgLightGreen.Sprint + var LightMagenta = FgLightMagenta.Sprint + var LightRed = FgLightRed.Sprint + var LightWhite = FgLightWhite.Sprint + var LightYellow = FgLightYellow.Sprint + var Magenta = FgMagenta.Sprint + var Normal = FgDefault.Sprint + var Output = true + var PrintColor = true + var PrintDebugMessages = false + var RawOutput = false + var Red = FgRed.Sprint + var Success = PrefixPrinter + var ThemeDefault = Theme + var Warning = PrefixPrinter + var White = FgWhite.Sprint + var Yellow = FgYellow.Sprint + func DisableColor() + func DisableDebugMessages() + func DisableOutput() + func DisableStyling() + func EnableColor() + func EnableDebugMessages() + func EnableOutput() + func EnableStyling() + func Fprint(writer io.Writer, a ...interface{}) + func Fprintln(writer io.Writer, a ...interface{}) + func Fprinto(w io.Writer, a ...interface{}) + func GetTerminalHeight() int + func GetTerminalSize() (width, height int, err error) + func GetTerminalWidth() int + func Print(a ...interface{}) + func PrintOnError(a ...interface{}) + func PrintOnErrorf(format string, a ...interface{}) + func Printf(format string, a ...interface{}) + func Printfln(format string, a ...interface{}) + func Println(a ...interface{}) + func Printo(a ...interface{}) + func RecalculateTerminalSize() + func RemoveColorFromString(a ...interface{}) string + func SetDefaultOutput(w io.Writer) + func SetForcedTerminalSize(width int, height int) + func Sprint(a ...interface{}) string + func Sprintf(format string, a ...interface{}) string + func Sprintfln(format string, a ...interface{}) string + func Sprintln(a ...interface{}) string + func Sprinto(a ...interface{}) string + type AreaPrinter struct + Center bool + Fullscreen bool + RemoveWhenDone bool + func (p *AreaPrinter) Clear() + func (p *AreaPrinter) GenericStart() (*LivePrinter, error) + func (p *AreaPrinter) GenericStop() (*LivePrinter, error) + func (p *AreaPrinter) GetContent() string + func (p *AreaPrinter) SetWriter(writer io.Writer) + func (p *AreaPrinter) Start(text ...interface{}) (*AreaPrinter, error) + func (p *AreaPrinter) Stop() error + func (p *AreaPrinter) Update(text ...interface{}) + func (p AreaPrinter) WithCenter(b ...bool) *AreaPrinter + func (p AreaPrinter) WithFullscreen(b ...bool) *AreaPrinter + func (p AreaPrinter) WithRemoveWhenDone(b ...bool) *AreaPrinter + type Bar struct + Label string + LabelStyle *Style + Style *Style + Value int + func (p Bar) WithLabel(s string) *Bar + func (p Bar) WithLabelStyle(style *Style) *Bar + func (p Bar) WithStyle(style *Style) *Bar + func (p Bar) WithValue(value int) *Bar + type BarChartPrinter struct + Bars Bars + Height int + Horizontal bool + HorizontalBarCharacter string + ShowValue bool + VerticalBarCharacter string + Width int + Writer io.Writer + func (p BarChartPrinter) Render() error + func (p BarChartPrinter) Srender() (string, error) + func (p BarChartPrinter) WithBars(bars Bars) *BarChartPrinter + func (p BarChartPrinter) WithHeight(value int) *BarChartPrinter + func (p BarChartPrinter) WithHorizontal(b ...bool) *BarChartPrinter + func (p BarChartPrinter) WithHorizontalBarCharacter(char string) *BarChartPrinter + func (p BarChartPrinter) WithShowValue(b ...bool) *BarChartPrinter + func (p BarChartPrinter) WithVerticalBarCharacter(char string) *BarChartPrinter + func (p BarChartPrinter) WithWidth(value int) *BarChartPrinter + func (p BarChartPrinter) WithWriter(writer io.Writer) *BarChartPrinter + type Bars []Bar + type BasicTextPrinter struct + Style *Style + Writer io.Writer + func (p *BasicTextPrinter) Print(a ...interface{}) *TextPrinter + func (p *BasicTextPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p *BasicTextPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p *BasicTextPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p *BasicTextPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p *BasicTextPrinter) Println(a ...interface{}) *TextPrinter + func (p BasicTextPrinter) Sprint(a ...interface{}) string + func (p BasicTextPrinter) Sprintf(format string, a ...interface{}) string + func (p BasicTextPrinter) Sprintfln(format string, a ...interface{}) string + func (p BasicTextPrinter) Sprintln(a ...interface{}) string + func (p BasicTextPrinter) WithStyle(style *Style) *BasicTextPrinter + func (p BasicTextPrinter) WithWriter(writer io.Writer) *BasicTextPrinter + type BigTextPrinter struct + BigCharacters map[string]string + Letters Letters + Writer io.Writer + func (p BigTextPrinter) Render() error + func (p BigTextPrinter) Srender() (string, error) + func (p BigTextPrinter) WithBigCharacters(chars map[string]string) *BigTextPrinter + func (p BigTextPrinter) WithLetters(letters ...Letters) *BigTextPrinter + func (p BigTextPrinter) WithWriter(writer io.Writer) *BigTextPrinter + type BoxPrinter struct + BottomLeftCornerString string + BottomPadding int + BottomRightCornerString string + BoxStyle *Style + HorizontalString string + LeftPadding int + RightPadding int + TextStyle *Style + Title string + TitleBottomCenter bool + TitleBottomLeft bool + TitleBottomRight bool + TitleTopCenter bool + TitleTopLeft bool + TitleTopRight bool + TopLeftCornerString string + TopPadding int + TopRightCornerString string + VerticalString string + Writer io.Writer + func (p BoxPrinter) Print(a ...interface{}) *TextPrinter + func (p BoxPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p BoxPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p BoxPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p BoxPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p BoxPrinter) Println(a ...interface{}) *TextPrinter + func (p BoxPrinter) Sprint(a ...interface{}) string + func (p BoxPrinter) Sprintf(format string, a ...interface{}) string + func (p BoxPrinter) Sprintfln(format string, a ...interface{}) string + func (p BoxPrinter) Sprintln(a ...interface{}) string + func (p BoxPrinter) WithBottomLeftCornerString(str string) *BoxPrinter + func (p BoxPrinter) WithBottomPadding(padding int) *BoxPrinter + func (p BoxPrinter) WithBottomRightCornerString(str string) *BoxPrinter + func (p BoxPrinter) WithBoxStyle(style *Style) *BoxPrinter + func (p BoxPrinter) WithHorizontalString(str string) *BoxPrinter + func (p BoxPrinter) WithLeftPadding(padding int) *BoxPrinter + func (p BoxPrinter) WithRightPadding(padding int) *BoxPrinter + func (p BoxPrinter) WithTextStyle(style *Style) *BoxPrinter + func (p BoxPrinter) WithTitle(str string) *BoxPrinter + func (p BoxPrinter) WithTitleBottomCenter(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTitleBottomLeft(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTitleBottomRight(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTitleTopCenter(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTitleTopLeft(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTitleTopRight(b ...bool) *BoxPrinter + func (p BoxPrinter) WithTopLeftCornerString(str string) *BoxPrinter + func (p BoxPrinter) WithTopPadding(padding int) *BoxPrinter + func (p BoxPrinter) WithTopRightCornerString(str string) *BoxPrinter + func (p BoxPrinter) WithVerticalString(str string) *BoxPrinter + func (p BoxPrinter) WithWriter(writer io.Writer) *BoxPrinter + type BulletListItem struct + Bullet string + BulletStyle *Style + Level int + Text string + TextStyle *Style + func NewBulletListItemFromString(text string, padding string) BulletListItem + func (p BulletListItem) WithBullet(bullet string) *BulletListItem + func (p BulletListItem) WithBulletStyle(style *Style) *BulletListItem + func (p BulletListItem) WithLevel(level int) *BulletListItem + func (p BulletListItem) WithText(text string) *BulletListItem + func (p BulletListItem) WithTextStyle(style *Style) *BulletListItem + type BulletListPrinter struct + Bullet string + BulletStyle *Style + Items []BulletListItem + TextStyle *Style + Writer io.Writer + func NewBulletListFromString(s string, padding string) BulletListPrinter + func NewBulletListFromStrings(s []string, padding string) BulletListPrinter + func (l BulletListPrinter) Render() error + func (l BulletListPrinter) Srender() (string, error) + func (l BulletListPrinter) WithBullet(bullet string) *BulletListPrinter + func (l BulletListPrinter) WithBulletStyle(style *Style) *BulletListPrinter + func (l BulletListPrinter) WithItems(items []BulletListItem) *BulletListPrinter + func (l BulletListPrinter) WithTextStyle(style *Style) *BulletListPrinter + func (l BulletListPrinter) WithWriter(writer io.Writer) *BulletListPrinter + type CenterPrinter struct + CenterEachLineSeparately bool + Writer io.Writer + func (p CenterPrinter) Print(a ...interface{}) *TextPrinter + func (p CenterPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p CenterPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p CenterPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p CenterPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p CenterPrinter) Println(a ...interface{}) *TextPrinter + func (p CenterPrinter) Sprint(a ...interface{}) string + func (p CenterPrinter) Sprintf(format string, a ...interface{}) string + func (p CenterPrinter) Sprintfln(format string, a ...interface{}) string + func (p CenterPrinter) Sprintln(a ...interface{}) string + func (p CenterPrinter) WithCenterEachLineSeparately(b ...bool) *CenterPrinter + func (p CenterPrinter) WithWriter(writer io.Writer) *CenterPrinter + type Checkmark struct + Checked string + Unchecked string + type Color uint8 + const BgBlack + const BgBlue + const BgCyan + const BgDarkGray + const BgDefault + const BgGray + const BgGreen + const BgLightBlue + const BgLightCyan + const BgLightGreen + const BgLightMagenta + const BgLightRed + const BgLightWhite + const BgLightYellow + const BgMagenta + const BgRed + const BgWhite + const BgYellow + const Blink + const Bold + const Concealed + const FastBlink + const FgBlack + const FgBlue + const FgCyan + const FgDarkGray + const FgDefault + const FgGray + const FgGreen + const FgLightBlue + const FgLightCyan + const FgLightGreen + const FgLightMagenta + const FgLightRed + const FgLightWhite + const FgLightYellow + const FgMagenta + const FgRed + const FgWhite + const FgYellow + const Fuzzy + const Italic + const Reset + const Reverse + const Strikethrough + const Underscore + func (c Color) Print(a ...interface{}) *TextPrinter + func (c Color) PrintOnError(a ...interface{}) *TextPrinter + func (c Color) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (c Color) Printf(format string, a ...interface{}) *TextPrinter + func (c Color) Printfln(format string, a ...interface{}) *TextPrinter + func (c Color) Println(a ...interface{}) *TextPrinter + func (c Color) Sprint(a ...interface{}) string + func (c Color) Sprintf(format string, a ...interface{}) string + func (c Color) Sprintfln(format string, a ...interface{}) string + func (c Color) Sprintln(a ...interface{}) string + func (c Color) String() string + func (c Color) ToStyle() *Style + type HeaderPrinter struct + BackgroundStyle *Style + FullWidth bool + Margin int + TextStyle *Style + Writer io.Writer + func (p *HeaderPrinter) Print(a ...interface{}) *TextPrinter + func (p *HeaderPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p *HeaderPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p *HeaderPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p *HeaderPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p *HeaderPrinter) Println(a ...interface{}) *TextPrinter + func (p HeaderPrinter) Sprint(a ...interface{}) string + func (p HeaderPrinter) Sprintf(format string, a ...interface{}) string + func (p HeaderPrinter) Sprintfln(format string, a ...interface{}) string + func (p HeaderPrinter) Sprintln(a ...interface{}) string + func (p HeaderPrinter) WithBackgroundStyle(style *Style) *HeaderPrinter + func (p HeaderPrinter) WithFullWidth(b ...bool) *HeaderPrinter + func (p HeaderPrinter) WithMargin(margin int) *HeaderPrinter + func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter + func (p HeaderPrinter) WithWriter(writer io.Writer) *HeaderPrinter + type InteractiveConfirmPrinter struct + ConfirmStyle *Style + ConfirmText string + DefaultText string + DefaultValue bool + Delimiter string + OnInterruptFunc func() + RejectStyle *Style + RejectText string + SuffixStyle *Style + TextStyle *Style + func (p InteractiveConfirmPrinter) Show(text ...string) (bool, error) + func (p InteractiveConfirmPrinter) WithConfirmStyle(style *Style) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithConfirmText(text string) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithDefaultText(text string) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithDefaultValue(value bool) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithDelimiter(delimiter string) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithOnInterruptFunc(exitFunc func()) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithRejectStyle(style *Style) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithRejectText(text string) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithSuffixStyle(style *Style) *InteractiveConfirmPrinter + func (p InteractiveConfirmPrinter) WithTextStyle(style *Style) *InteractiveConfirmPrinter + type InteractiveContinuePrinter struct + DefaultText string + DefaultValueIndex int + Delimiter string + Handles []string + Options []string + OptionsStyle *Style + ShowShortHandles bool + SuffixStyle *Style + TextStyle *Style + func (p InteractiveContinuePrinter) Show(text ...string) (string, error) + func (p InteractiveContinuePrinter) WithDefaultText(text string) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithDefaultValue(value string) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithDefaultValueIndex(value int) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithDelimiter(delimiter string) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithHandles(handles []string) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithOptions(options []string) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithOptionsStyle(style *Style) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithShowShortHandles(b ...bool) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithSuffixStyle(style *Style) *InteractiveContinuePrinter + func (p InteractiveContinuePrinter) WithTextStyle(style *Style) *InteractiveContinuePrinter + type InteractiveMultiselectPrinter struct + Checkmark *Checkmark + DefaultOptions []string + DefaultText string + Filter bool + KeyConfirm keys.KeyCode + KeySelect keys.KeyCode + MaxHeight int + OnInterruptFunc func() + OptionStyle *Style + Options []string + Selector string + SelectorStyle *Style + TextStyle *Style + func (p *InteractiveMultiselectPrinter) Show(text ...string) ([]string, error) + func (p InteractiveMultiselectPrinter) WithCheckmark(checkmark *Checkmark) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithDefaultOptions(options []string) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithDefaultText(text string) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithFilter(b ...bool) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithKeyConfirm(keyConfirm keys.KeyCode) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithKeySelect(keySelect keys.KeyCode) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithMaxHeight(maxHeight int) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithOnInterruptFunc(exitFunc func()) *InteractiveMultiselectPrinter + func (p InteractiveMultiselectPrinter) WithOptions(options []string) *InteractiveMultiselectPrinter + type InteractiveSelectPrinter struct + DefaultOption string + DefaultText string + Filter bool + MaxHeight int + OnInterruptFunc func() + OptionStyle *Style + Options []string + Selector string + SelectorStyle *Style + TextStyle *Style + func (p *InteractiveSelectPrinter) Show(text ...string) (string, error) + func (p InteractiveSelectPrinter) WithDefaultOption(option string) *InteractiveSelectPrinter + func (p InteractiveSelectPrinter) WithDefaultText(text string) *InteractiveSelectPrinter + func (p InteractiveSelectPrinter) WithFilter(b ...bool) *InteractiveSelectPrinter + func (p InteractiveSelectPrinter) WithMaxHeight(maxHeight int) *InteractiveSelectPrinter + func (p InteractiveSelectPrinter) WithOnInterruptFunc(exitFunc func()) *InteractiveSelectPrinter + func (p InteractiveSelectPrinter) WithOptions(options []string) *InteractiveSelectPrinter + type InteractiveTextInputPrinter struct + DefaultText string + Delimiter string + Mask string + MultiLine bool + OnInterruptFunc func() + TextStyle *Style + func (p InteractiveTextInputPrinter) Show(text ...string) (string, error) + func (p InteractiveTextInputPrinter) WithDefaultText(text string) *InteractiveTextInputPrinter + func (p InteractiveTextInputPrinter) WithDelimiter(delimiter string) *InteractiveTextInputPrinter + func (p InteractiveTextInputPrinter) WithMask(mask string) *InteractiveTextInputPrinter + func (p InteractiveTextInputPrinter) WithMultiLine(multiLine ...bool) *InteractiveTextInputPrinter + func (p InteractiveTextInputPrinter) WithOnInterruptFunc(exitFunc func()) *InteractiveTextInputPrinter + func (p InteractiveTextInputPrinter) WithTextStyle(style *Style) *InteractiveTextInputPrinter + type Letter struct + RGB RGB + String string + Style *Style + func (l Letter) WithRGB(rgb RGB) *Letter + func (l Letter) WithString(s string) *Letter + func (l Letter) WithStyle(style *Style) *Letter + type Letters []Letter + func NewLettersFromString(text string) Letters + func NewLettersFromStringWithRGB(text string, rgb RGB) Letters + func NewLettersFromStringWithStyle(text string, style *Style) Letters + type LeveledList []LeveledListItem + type LeveledListItem struct + Level int + Text string + type LivePrinter interface + GenericStart func() (*LivePrinter, error) + GenericStop func() (*LivePrinter, error) + SetWriter func(writer io.Writer) + type LogFormatter int + const LogFormatterColorful + const LogFormatterJSON + type LogLevel int + const LogLevelDebug + const LogLevelDisabled + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelPrint + const LogLevelTrace + const LogLevelWarn + func (l LogLevel) String() string + func (l LogLevel) Style() Style + type Logger struct + CallerOffset int + Formatter LogFormatter + KeyStyles map[string]Style + Level LogLevel + MaxWidth int + ShowCaller bool + ShowTime bool + TimeFormat string + Writer io.Writer + func (l Logger) AppendKeyStyle(key string, style Style) *Logger + func (l Logger) AppendKeyStyles(styles map[string]Style) *Logger + func (l Logger) Args(args ...any) []LoggerArgument + func (l Logger) ArgsFromMap(m map[string]any) []LoggerArgument + func (l Logger) CanPrint(level LogLevel) bool + func (l Logger) Debug(msg string, args ...[]LoggerArgument) + func (l Logger) Error(msg string, args ...[]LoggerArgument) + func (l Logger) Fatal(msg string, args ...[]LoggerArgument) + func (l Logger) Info(msg string, args ...[]LoggerArgument) + func (l Logger) Print(msg string, args ...[]LoggerArgument) + func (l Logger) Trace(msg string, args ...[]LoggerArgument) + func (l Logger) Warn(msg string, args ...[]LoggerArgument) + func (l Logger) WithCaller(b ...bool) *Logger + func (l Logger) WithCallerOffset(offset int) *Logger + func (l Logger) WithFormatter(formatter LogFormatter) *Logger + func (l Logger) WithKeyStyles(styles map[string]Style) *Logger + func (l Logger) WithLevel(level LogLevel) *Logger + func (l Logger) WithMaxWidth(width int) *Logger + func (l Logger) WithTime(b ...bool) *Logger + func (l Logger) WithTimeFormat(format string) *Logger + func (l Logger) WithWriter(writer io.Writer) *Logger + type LoggerArgument struct + Key string + Value any + type MultiPrinter struct + IsActive bool + UpdateDelay time.Duration + Writer io.Writer + func (p *MultiPrinter) NewWriter() io.Writer + func (p *MultiPrinter) SetWriter(writer io.Writer) + func (p *MultiPrinter) Start() (*MultiPrinter, error) + func (p *MultiPrinter) Stop() (*MultiPrinter, error) + func (p MultiPrinter) GenericStart() (*LivePrinter, error) + func (p MultiPrinter) GenericStop() (*LivePrinter, error) + func (p MultiPrinter) WithUpdateDelay(delay time.Duration) *MultiPrinter + func (p MultiPrinter) WithWriter(writer io.Writer) *MultiPrinter + type Panel struct + Data string + type PanelPrinter struct + BottomPadding int + BoxPrinter BoxPrinter + Padding int + Panels Panels + SameColumnWidth bool + Writer io.Writer + func (p PanelPrinter) Render() error + func (p PanelPrinter) Srender() (string, error) + func (p PanelPrinter) WithBottomPadding(bottomPadding int) *PanelPrinter + func (p PanelPrinter) WithBoxPrinter(boxPrinter BoxPrinter) *PanelPrinter + func (p PanelPrinter) WithPadding(padding int) *PanelPrinter + func (p PanelPrinter) WithPanels(panels Panels) *PanelPrinter + func (p PanelPrinter) WithSameColumnWidth(b ...bool) *PanelPrinter + func (p PanelPrinter) WithWriter(writer io.Writer) *PanelPrinter + type Panels [][]Panel + type ParagraphPrinter struct + MaxWidth int + Writer io.Writer + func (p *ParagraphPrinter) Print(a ...interface{}) *TextPrinter + func (p *ParagraphPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p *ParagraphPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p *ParagraphPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p *ParagraphPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p *ParagraphPrinter) Println(a ...interface{}) *TextPrinter + func (p ParagraphPrinter) Sprint(a ...interface{}) string + func (p ParagraphPrinter) Sprintf(format string, a ...interface{}) string + func (p ParagraphPrinter) Sprintfln(format string, a ...interface{}) string + func (p ParagraphPrinter) Sprintln(a ...interface{}) string + func (p ParagraphPrinter) WithMaxWidth(width int) *ParagraphPrinter + func (p ParagraphPrinter) WithWriter(writer io.Writer) *ParagraphPrinter + type Prefix struct + Style *Style + Text string + type PrefixPrinter struct + Debugger bool + Fatal bool + LineNumberOffset int + MessageStyle *Style + Prefix Prefix + Scope Scope + ShowLineNumber bool + Writer io.Writer + func (p *PrefixPrinter) Print(a ...interface{}) *TextPrinter + func (p *PrefixPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p *PrefixPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p *PrefixPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p *PrefixPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p *PrefixPrinter) Println(a ...interface{}) *TextPrinter + func (p *PrefixPrinter) Sprint(a ...interface{}) string + func (p PrefixPrinter) GetFormattedPrefix() string + func (p PrefixPrinter) Sprintf(format string, a ...interface{}) string + func (p PrefixPrinter) Sprintfln(format string, a ...interface{}) string + func (p PrefixPrinter) Sprintln(a ...interface{}) string + func (p PrefixPrinter) WithDebugger(b ...bool) *PrefixPrinter + func (p PrefixPrinter) WithFatal(b ...bool) *PrefixPrinter + func (p PrefixPrinter) WithLineNumberOffset(offset int) *PrefixPrinter + func (p PrefixPrinter) WithMessageStyle(style *Style) *PrefixPrinter + func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter + func (p PrefixPrinter) WithScope(scope Scope) *PrefixPrinter + func (p PrefixPrinter) WithShowLineNumber(b ...bool) *PrefixPrinter + func (p PrefixPrinter) WithWriter(writer io.Writer) *PrefixPrinter + type ProgressbarPrinter struct + BarCharacter string + BarFiller string + BarStyle *Style + Current int + ElapsedTimeRoundingFactor time.Duration + IsActive bool + LastCharacter string + MaxWidth int + RemoveWhenDone bool + ShowCount bool + ShowElapsedTime bool + ShowPercentage bool + ShowTitle bool + Title string + TitleStyle *Style + Total int + Writer io.Writer + func (p *ProgressbarPrinter) Add(count int) *ProgressbarPrinter + func (p *ProgressbarPrinter) GenericStart() (*LivePrinter, error) + func (p *ProgressbarPrinter) GenericStop() (*LivePrinter, error) + func (p *ProgressbarPrinter) GetElapsedTime() time.Duration + func (p *ProgressbarPrinter) Increment() *ProgressbarPrinter + func (p *ProgressbarPrinter) SetWriter(writer io.Writer) + func (p *ProgressbarPrinter) Stop() (*ProgressbarPrinter, error) + func (p *ProgressbarPrinter) UpdateTitle(title string) *ProgressbarPrinter + func (p ProgressbarPrinter) Start(title ...interface{}) (*ProgressbarPrinter, error) + func (p ProgressbarPrinter) WithBarCharacter(char string) *ProgressbarPrinter + func (p ProgressbarPrinter) WithBarFiller(char string) *ProgressbarPrinter + func (p ProgressbarPrinter) WithBarStyle(style *Style) *ProgressbarPrinter + func (p ProgressbarPrinter) WithCurrent(current int) *ProgressbarPrinter + func (p ProgressbarPrinter) WithElapsedTimeRoundingFactor(duration time.Duration) *ProgressbarPrinter + func (p ProgressbarPrinter) WithLastCharacter(char string) *ProgressbarPrinter + func (p ProgressbarPrinter) WithMaxWidth(maxWidth int) *ProgressbarPrinter + func (p ProgressbarPrinter) WithRemoveWhenDone(b ...bool) *ProgressbarPrinter + func (p ProgressbarPrinter) WithShowCount(b ...bool) *ProgressbarPrinter + func (p ProgressbarPrinter) WithShowElapsedTime(b ...bool) *ProgressbarPrinter + func (p ProgressbarPrinter) WithShowPercentage(b ...bool) *ProgressbarPrinter + func (p ProgressbarPrinter) WithShowTitle(b ...bool) *ProgressbarPrinter + func (p ProgressbarPrinter) WithTitle(name string) *ProgressbarPrinter + func (p ProgressbarPrinter) WithTitleStyle(style *Style) *ProgressbarPrinter + func (p ProgressbarPrinter) WithTotal(total int) *ProgressbarPrinter + func (p ProgressbarPrinter) WithWriter(writer io.Writer) *ProgressbarPrinter + type RGB struct + B uint8 + Background bool + G uint8 + R uint8 + func NewRGB(r, g, b uint8, background ...bool) RGB + func NewRGBFromHEX(hex string) (RGB, error) + func (p RGB) Fade(min, max, current float32, end ...RGB) RGB + func (p RGB) GetValues() (r, g, b uint8) + func (p RGB) Print(a ...interface{}) *TextPrinter + func (p RGB) PrintOnError(a ...interface{}) *TextPrinter + func (p RGB) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p RGB) Printf(format string, a ...interface{}) *TextPrinter + func (p RGB) Printfln(format string, a ...interface{}) *TextPrinter + func (p RGB) Println(a ...interface{}) *TextPrinter + func (p RGB) Sprint(a ...interface{}) string + func (p RGB) Sprintf(format string, a ...interface{}) string + func (p RGB) Sprintfln(format string, a ...interface{}) string + func (p RGB) Sprintln(a ...interface{}) string + func (p RGB) ToRGBStyle() RGBStyle + type RGBStyle struct + Background RGB + Foreground RGB + Options []Color + func NewRGBStyle(foreground RGB, background ...RGB) RGBStyle + func (p RGBStyle) AddOptions(opts ...Color) RGBStyle + func (p RGBStyle) Print(a ...interface{}) *TextPrinter + func (p RGBStyle) PrintOnError(a ...interface{}) *TextPrinter + func (p RGBStyle) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p RGBStyle) Printf(format string, a ...interface{}) *TextPrinter + func (p RGBStyle) Printfln(format string, a ...interface{}) *TextPrinter + func (p RGBStyle) Println(a ...interface{}) *TextPrinter + func (p RGBStyle) Sprint(a ...interface{}) string + func (p RGBStyle) Sprintf(format string, a ...interface{}) string + func (p RGBStyle) Sprintfln(format string, a ...interface{}) string + func (p RGBStyle) Sprintln(a ...interface{}) string + type RenderPrinter interface + Render func() error + Srender func() (string, error) + type Scope struct + Style *Style + Text string + type SectionPrinter struct + BottomPadding int + IndentCharacter string + Level int + Style *Style + TopPadding int + Writer io.Writer + func (p *SectionPrinter) Print(a ...interface{}) *TextPrinter + func (p *SectionPrinter) PrintOnError(a ...interface{}) *TextPrinter + func (p *SectionPrinter) PrintOnErrorf(format string, a ...interface{}) *TextPrinter + func (p *SectionPrinter) Printf(format string, a ...interface{}) *TextPrinter + func (p *SectionPrinter) Printfln(format string, a ...interface{}) *TextPrinter + func (p *SectionPrinter) Println(a ...interface{}) *TextPrinter + func (p SectionPrinter) Sprint(a ...interface{}) string + func (p SectionPrinter) Sprintf(format string, a ...interface{}) string + func (p SectionPrinter) Sprintfln(format string, a ...interface{}) string + func (p SectionPrinter) Sprintln(a ...interface{}) string + func (p SectionPrinter) WithBottomPadding(padding int) *SectionPrinter + func (p SectionPrinter) WithIndentCharacter(char string) *SectionPrinter + func (p SectionPrinter) WithLevel(level int) *SectionPrinter + func (p SectionPrinter) WithStyle(style *Style) *SectionPrinter + func (p SectionPrinter) WithTopPadding(padding int) *SectionPrinter + func (p SectionPrinter) WithWriter(writer io.Writer) *SectionPrinter + type SlogHandler struct + func NewSlogHandler(logger *Logger) *SlogHandler + func (s *SlogHandler) Enabled(ctx context.Context, level slog.Level) bool + func (s *SlogHandler) Handle(ctx context.Context, record slog.Record) error + func (s *SlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (s *SlogHandler) WithGroup(name string) slog.Handler + type SpinnerPrinter struct + Delay time.Duration + FailPrinter TextPrinter + InfoPrinter TextPrinter + IsActive bool + MessageStyle *Style + RemoveWhenDone bool + Sequence []string + ShowTimer bool + Style *Style + SuccessPrinter TextPrinter + Text string + TimerRoundingFactor time.Duration + TimerStyle *Style + WarningPrinter TextPrinter + Writer io.Writer + func (p *SpinnerPrinter) SetWriter(writer io.Writer) + func (p SpinnerPrinter) WithWriter(writer io.Writer) *SpinnerPrinter + func (s *SpinnerPrinter) Fail(message ...interface{}) + func (s *SpinnerPrinter) GenericStart() (*LivePrinter, error) + func (s *SpinnerPrinter) GenericStop() (*LivePrinter, error) + func (s *SpinnerPrinter) Info(message ...interface{}) + func (s *SpinnerPrinter) Stop() error + func (s *SpinnerPrinter) Success(message ...interface{}) + func (s *SpinnerPrinter) UpdateText(text string) + func (s *SpinnerPrinter) Warning(message ...interface{}) + func (s SpinnerPrinter) Start(text ...interface{}) (*SpinnerPrinter, error) + func (s SpinnerPrinter) WithDelay(delay time.Duration) *SpinnerPrinter + func (s SpinnerPrinter) WithMessageStyle(style *Style) *SpinnerPrinter + func (s SpinnerPrinter) WithRemoveWhenDone(b ...bool) *SpinnerPrinter + func (s SpinnerPrinter) WithSequence(sequence ...string) *SpinnerPrinter + func (s SpinnerPrinter) WithShowTimer(b ...bool) *SpinnerPrinter + func (s SpinnerPrinter) WithStyle(style *Style) *SpinnerPrinter + func (s SpinnerPrinter) WithText(text string) *SpinnerPrinter + func (s SpinnerPrinter) WithTimerRoundingFactor(factor time.Duration) *SpinnerPrinter + func (s SpinnerPrinter) WithTimerStyle(style *Style) *SpinnerPrinter + type Style []Color + func NewStyle(colors ...Color) *Style + func (s Style) Add(styles ...Style) Style + func (s Style) Code() string + func (s Style) Print(a ...interface{}) + func (s Style) Printf(format string, a ...interface{}) + func (s Style) Printfln(format string, a ...interface{}) + func (s Style) Println(a ...interface{}) + func (s Style) RemoveColor(colors ...Color) Style + func (s Style) Sprint(a ...interface{}) string + func (s Style) Sprintf(format string, a ...interface{}) string + func (s Style) Sprintfln(format string, a ...interface{}) string + func (s Style) Sprintln(a ...interface{}) string + func (s Style) String() string + type TableData [][]string + type TablePrinter struct + Boxed bool + Data TableData + HasHeader bool + HeaderRowSeparator string + HeaderRowSeparatorStyle *Style + HeaderStyle *Style + LeftAlignment bool + RightAlignment bool + RowSeparator string + RowSeparatorStyle *Style + Separator string + SeparatorStyle *Style + Style *Style + Writer io.Writer + func (p TablePrinter) Render() error + func (p TablePrinter) Srender() (string, error) + func (p TablePrinter) WithBoxed(b ...bool) *TablePrinter + func (p TablePrinter) WithCSVReader(reader *csv.Reader) *TablePrinter + func (p TablePrinter) WithData(data [][]string) *TablePrinter + func (p TablePrinter) WithHasHeader(b ...bool) *TablePrinter + func (p TablePrinter) WithHeaderRowSeparator(separator string) *TablePrinter + func (p TablePrinter) WithHeaderRowSeparatorStyle(style *Style) *TablePrinter + func (p TablePrinter) WithHeaderStyle(style *Style) *TablePrinter + func (p TablePrinter) WithLeftAlignment(b ...bool) *TablePrinter + func (p TablePrinter) WithRightAlignment(b ...bool) *TablePrinter + func (p TablePrinter) WithRowSeparator(separator string) *TablePrinter + func (p TablePrinter) WithRowSeparatorStyle(style *Style) *TablePrinter + func (p TablePrinter) WithSeparator(separator string) *TablePrinter + func (p TablePrinter) WithSeparatorStyle(style *Style) *TablePrinter + func (p TablePrinter) WithStyle(style *Style) *TablePrinter + func (p TablePrinter) WithWriter(writer io.Writer) *TablePrinter + type TextPrinter interface + Print func(a ...interface{}) *TextPrinter + PrintOnError func(a ...interface{}) *TextPrinter + PrintOnErrorf func(format string, a ...interface{}) *TextPrinter + Printf func(format string, a ...interface{}) *TextPrinter + Printfln func(format string, a ...interface{}) *TextPrinter + Println func(a ...interface{}) *TextPrinter + Sprint func(a ...interface{}) string + Sprintf func(format string, a ...interface{}) string + Sprintfln func(format string, a ...interface{}) string + Sprintln func(a ...interface{}) string + type Theme struct + BarLabelStyle Style + BarStyle Style + BoxStyle Style + BoxTextStyle Style + BulletListBulletStyle Style + BulletListTextStyle Style + Checkmark Checkmark + DebugMessageStyle Style + DebugPrefixStyle Style + DefaultText Style + DescriptionMessageStyle Style + DescriptionPrefixStyle Style + ErrorMessageStyle Style + ErrorPrefixStyle Style + FatalMessageStyle Style + FatalPrefixStyle Style + HeaderBackgroundStyle Style + HeaderTextStyle Style + HighlightStyle Style + InfoMessageStyle Style + InfoPrefixStyle Style + LetterStyle Style + PrimaryStyle Style + ProgressbarBarStyle Style + ProgressbarTitleStyle Style + ScopeStyle Style + SecondaryStyle Style + SectionStyle Style + SpinnerStyle Style + SpinnerTextStyle Style + SuccessMessageStyle Style + SuccessPrefixStyle Style + TableHeaderStyle Style + TableSeparatorStyle Style + TableStyle Style + TimerStyle Style + TreeStyle Style + TreeTextStyle Style + WarningMessageStyle Style + WarningPrefixStyle Style + func (t Theme) WithBarLabelStyle(style Style) Theme + func (t Theme) WithBarStyle(style Style) Theme + func (t Theme) WithBoxStyle(style Style) Theme + func (t Theme) WithBoxTextStyle(style Style) Theme + func (t Theme) WithBulletListBulletStyle(style Style) Theme + func (t Theme) WithBulletListTextStyle(style Style) Theme + func (t Theme) WithDebugMessageStyle(style Style) Theme + func (t Theme) WithDebugPrefixStyle(style Style) Theme + func (t Theme) WithDescriptionMessageStyle(style Style) Theme + func (t Theme) WithDescriptionPrefixStyle(style Style) Theme + func (t Theme) WithErrorMessageStyle(style Style) Theme + func (t Theme) WithErrorPrefixStyle(style Style) Theme + func (t Theme) WithFatalMessageStyle(style Style) Theme + func (t Theme) WithFatalPrefixStyle(style Style) Theme + func (t Theme) WithHighlightStyle(style Style) Theme + func (t Theme) WithInfoMessageStyle(style Style) Theme + func (t Theme) WithInfoPrefixStyle(style Style) Theme + func (t Theme) WithLetterStyle(style Style) Theme + func (t Theme) WithPrimaryStyle(style Style) Theme + func (t Theme) WithSecondaryStyle(style Style) Theme + func (t Theme) WithSuccessMessageStyle(style Style) Theme + func (t Theme) WithSuccessPrefixStyle(style Style) Theme + func (t Theme) WithTreeStyle(style Style) Theme + func (t Theme) WithTreeTextStyle(style Style) Theme + func (t Theme) WithWarningMessageStyle(style Style) Theme + func (t Theme) WithWarningPrefixStyle(style Style) Theme + type TreeNode struct + Children []TreeNode + Text string + func NewTreeFromLeveledList(leveledListItems LeveledList) TreeNode + type TreePrinter struct + HorizontalString string + Indent int + RightDownLeftString string + Root TreeNode + TextStyle *Style + TopRightCornerString string + TopRightDownString string + TreeStyle *Style + VerticalString string + Writer io.Writer + func (p TreePrinter) Render() error + func (p TreePrinter) Srender() (string, error) + func (p TreePrinter) WithHorizontalString(s string) *TreePrinter + func (p TreePrinter) WithIndent(indent int) *TreePrinter + func (p TreePrinter) WithRoot(root TreeNode) *TreePrinter + func (p TreePrinter) WithTextStyle(style *Style) *TreePrinter + func (p TreePrinter) WithTopRightCornerString(s string) *TreePrinter + func (p TreePrinter) WithTopRightDownStringOngoing(s string) *TreePrinter + func (p TreePrinter) WithTreeStyle(style *Style) *TreePrinter + func (p TreePrinter) WithVerticalString(s string) *TreePrinter + func (p TreePrinter) WithWriter(writer io.Writer) *TreePrinter