Documentation
¶
Index ¶
- type Printer
- func (p *Printer) Blank()
- func (p *Printer) Error(msg string)
- func (p *Printer) Header(text string)
- func (p *Printer) Info(msg string)
- func (p *Printer) KeyValue(key, value string)
- func (p *Printer) Muted(msg string)
- func (p *Printer) Print(msg string)
- func (p *Printer) Println(msg string)
- func (p *Printer) Step(msg string)
- func (p *Printer) StyledHeader(text string) string
- func (p *Printer) StyledIcon(icon string) string
- func (p *Printer) StyledItem(text string) string
- func (p *Printer) StyledMuted(text string) string
- func (p *Printer) Success(msg string)
- func (p *Printer) Warning(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer handles styled CLI output with consistent formatting Reuses the TUI color palette and styles for consistency
func DefaultPrinter ¶
DefaultPrinter creates a printer that writes to stdout
func NewPrinter ¶
NewPrinter creates a new CLI output printer
func (*Printer) StyledHeader ¶
StyledHeader returns header-styled text while honoring color settings.
func (*Printer) StyledIcon ¶
StyledIcon returns an icon string that honors color and icon toggles.
func (*Printer) StyledItem ¶
StyledItem returns emphasized item-styled text while honoring color settings.
func (*Printer) StyledMuted ¶
StyledMuted returns muted-styled text while honoring color settings.
Click to show internal directories.
Click to hide internal directories.