display

package
v0.8.34 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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