Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SuccessIcon is a green checkmark SuccessIcon = lipgloss.NewStyle(). Foreground(lipgloss.Color("10")). Bold(true). Render("✓") // ErrorIcon is a red cross ErrorIcon = lipgloss.NewStyle(). Foreground(lipgloss.Color("9")). Bold(true). Render("✗") // WarnIcon is a yellow warning symbol WarnIcon = lipgloss.NewStyle(). Foreground(lipgloss.Color("11")). Bold(true). Render("!") // InfoIcon is a blue info symbol InfoIcon = lipgloss.NewStyle(). Foreground(lipgloss.Color("12")). Bold(true). Render("i") )
Icon constants for consistent CLI output
View Source
var ( // HeaderStyle is used for section headers HeaderStyle = lipgloss.NewStyle(). Bold(true) // SuccessStyle renders text in green SuccessStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("10")) // ErrorStyle renders text in red and bold ErrorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("9")). Bold(true) // WarnStyle renders text in yellow WarnStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("11")) // DimStyle renders text dimmed/faint for secondary info DimStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("8")) // BoldStyle renders text in bold BoldStyle = lipgloss.NewStyle(). Bold(true) // FilePathStyle renders file paths in cyan FilePathStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("14")) // CommandStyle renders CLI commands in bold cyan CommandStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("14")). Bold(true) )
Reusable style objects for consistent formatting
Functions ¶
func Error ¶
Error renders an error message with cross icon. Example output: " ✗ Failed to parse schema"
func Grouped ¶
Grouped renders a header followed by indented items (Cargo-style grouped output). Example:
Files: forge.toml main.go
func Info ¶
Info renders an info message with info icon. Example output: " i Using cached dependencies"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.