output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("12"))
	CellStyle   = lipgloss.NewStyle()
	IDStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("8"))
)

Functions

func FormatID

func FormatID(id string) string

func FormatTime

func FormatTime(t time.Time) string

func Indent

func Indent(s string, prefix string) string

func Plural

func Plural(n int, singular, plural string) string

func PrintError

func PrintError(msg string)

func PrintInfo

func PrintInfo(msg string)

func PrintJSON

func PrintJSON(v any) error

func PrintKeyValue

func PrintKeyValue(pairs [][2]string)

func PrintSuccess

func PrintSuccess(msg string)

func PrintTable

func PrintTable(headers []string, rows [][]string)

func Truncate

func Truncate(s string, maxLen int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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