Versions in this module Expand all Collapse all v0 v0.1.13 Jan 25, 2026 Changes in this version + func EmptyValueOrDefault(value, defaultValue string) string + func FormatAge(t time.Time) string + func FormatStatus(installed bool) string + func FormatTimestamp(t time.Time) string + func FormatTimestampShort(t time.Time) string + func PrintError(message string) + func PrintInfo(message string) + func PrintSuccess(message string) + func PrintTable(headers []string, rows [][]string, opts ...Option) error + func PrintWarning(message string) + func TruncateString(s string, maxLen int) string + type Option func(*TablePrinter) + func WithNoHeaders() Option + func WithOutputType(t OutputType) Option + func WithWide() Option + type OutputType string + const OutputTypeJSON + const OutputTypeTable + const OutputTypeWide + const OutputTypeYAML + type Printer struct + func New(outputType OutputType, wide bool) *Printer + func (p *Printer) PrintJSON(data any) error + func (p *Printer) SetOutput(out io.Writer) + type TablePrinter struct + func NewTablePrinter(out io.Writer, opts ...Option) *TablePrinter + func (p *TablePrinter) AddRow(values ...any) + func (p *TablePrinter) Render() error + func (p *TablePrinter) SetHeaders(headers ...string)