display

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SymbolSuccess    = "✓"
	SymbolError      = "✗"
	SymbolInProgress = "⟳"
	SymbolBlocked    = "◌"
	SymbolWarning    = "⚠"
	SymbolManual     = "👤"
)

Status symbols for terminal output.

Variables

View Source
var (
	Green  = lipgloss.NewStyle().Foreground(lipgloss.Color("2"))
	Red    = lipgloss.NewStyle().Foreground(lipgloss.Color("1"))
	Yellow = lipgloss.NewStyle().Foreground(lipgloss.Color("3"))
	Blue   = lipgloss.NewStyle().Foreground(lipgloss.Color("4"))
	Muted  = lipgloss.NewStyle().Foreground(lipgloss.Color("8"))
	Bold   = lipgloss.NewStyle().Bold(true)
)

Functions

func Blocked

func Blocked(msg string) string

Blocked renders a muted blocked message.

func Error

func Error(msg string) string

Error renders a red error message.

func InProgress

func InProgress(msg string) string

InProgress renders a yellow in-progress message.

func Manual

func Manual(msg string) string

Manual renders a manual task message.

func Progress

func Progress(done, total int) string

Progress renders a progress string like "3/5 done".

func Success

func Success(msg string) string

Success renders a green success message.

func Warning

func Warning(msg string) string

Warning renders a yellow warning message.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table renders a simple aligned table.

func NewTable

func NewTable(headers ...string) *Table

NewTable creates a table with the given headers.

func (*Table) AddRow

func (t *Table) AddRow(cols ...string)

AddRow adds a row to the table.

func (*Table) Render

func (t *Table) Render() string

Render returns the table as a formatted string.

func (*Table) String

func (t *Table) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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