cliout

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func DefaultPrinter(jsonMode bool) *Printer

DefaultPrinter creates a printer that writes to stdout

func NewPrinter

func NewPrinter(w io.Writer, jsonMode bool) *Printer

NewPrinter creates a new CLI output printer

func (*Printer) Blank

func (p *Printer) Blank()

Blank prints a blank line

func (*Printer) Error

func (p *Printer) Error(msg string)

Error prints an error message

func (*Printer) Header

func (p *Printer) Header(text string)

Header prints a section header

func (*Printer) Info

func (p *Printer) Info(msg string)

Info prints an informational message

func (*Printer) KeyValue

func (p *Printer) KeyValue(key, value string)

KeyValue prints a key-value pair with consistent styling

func (*Printer) Muted

func (p *Printer) Muted(msg string)

Muted prints dimmed/muted text

func (*Printer) Print

func (p *Printer) Print(msg string)

Print raw text without styling

func (*Printer) Println

func (p *Printer) Println(msg string)

Println prints raw text with newline

func (*Printer) Step

func (p *Printer) Step(msg string)

Step prints a step/progress message with arrow indicator

func (*Printer) StyledHeader

func (p *Printer) StyledHeader(text string) string

StyledHeader returns header-styled text while honoring color settings.

func (*Printer) StyledIcon

func (p *Printer) StyledIcon(icon string) string

StyledIcon returns an icon string that honors color and icon toggles.

func (*Printer) StyledItem

func (p *Printer) StyledItem(text string) string

StyledItem returns emphasized item-styled text while honoring color settings.

func (*Printer) StyledMuted

func (p *Printer) StyledMuted(text string) string

StyledMuted returns muted-styled text while honoring color settings.

func (*Printer) Success

func (p *Printer) Success(msg string)

Success prints a success message

func (*Printer) Warning

func (p *Printer) Warning(msg string)

Warning prints a warning message

Jump to

Keyboard shortcuts

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