Documentation
¶
Overview ¶
Package style provides consistent terminal styling using Lipgloss.
Package style provides consistent terminal styling using Lipgloss.
Index ¶
- Variables
- func DAGProgress(steps map[string]string, phases []string) string
- func MoleculeLifecycleASCII() string
- func PhaseTable() string
- func PrintWarning(format string, args ...interface{})
- func ProgressBar(percent int, width int) string
- func SuggestionBox(message string, suggestions []string, hint string) string
- type Alignment
- type Column
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Success style for positive outcomes Success = lipgloss.NewStyle(). Foreground(lipgloss.Color("10")). Bold(true) // Warning style for cautionary messages Warning = lipgloss.NewStyle(). Foreground(lipgloss.Color("11")). Bold(true) // Error style for failures Error = lipgloss.NewStyle(). Foreground(lipgloss.Color("9")). Bold(true) // Info style for informational messages Info = lipgloss.NewStyle(). Foreground(lipgloss.Color("12")) // Blue // Dim style for secondary information Dim = lipgloss.NewStyle(). Foreground(lipgloss.Color("8")) // Gray // Bold style for emphasis Bold = lipgloss.NewStyle(). Bold(true) // SuccessPrefix is the checkmark prefix for success messages SuccessPrefix = Success.Render("[OK]") // WarningPrefix is the warning prefix WarningPrefix = Warning.Render("[!]") // ErrorPrefix is the error prefix ErrorPrefix = Error.Render("[X]") // ArrowPrefix for action indicators ArrowPrefix = Info.Render("→") )
Functions ¶
func DAGProgress ¶
DAGProgress renders a DAG progress visualization. steps is a map of step name to status (done, in_progress, ready, blocked).
func MoleculeLifecycleASCII ¶
func MoleculeLifecycleASCII() string
MoleculeLifecycleASCII renders the molecule lifecycle diagram.
func PrintWarning ¶
func PrintWarning(format string, args ...interface{})
PrintWarning prints a warning message with consistent formatting. The format and args work like fmt.Printf.
func ProgressBar ¶
ProgressBar renders a simple progress bar.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table provides styled table rendering.
func (*Table) SetHeaderSeparator ¶
SetHeaderSeparator enables/disables the header separator line.
Click to show internal directories.
Click to hide internal directories.