Documentation
¶
Overview ¶
Package commands provides CLI command-specific UI components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TitleStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("62")). Bold(true) SuccessStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("46")) ErrorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("196")) WarningStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("226")) InfoStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("75")) )
Functions ¶
func ColorSuccess ¶
ColorSuccess returns text styled with the success color.
func ColorWarning ¶
ColorWarning returns text styled with the warning color.
func PrintError ¶
func PrintError(msg string)
PrintError prints an error message with red [ERROR] prefix.
func PrintInfo ¶
func PrintInfo(msg string)
PrintInfo prints an informational message with blue [INFO] prefix.
func PrintSuccess ¶
func PrintSuccess(msg string)
PrintSuccess prints a success message with green [SUCCESS] prefix.
func PrintWarning ¶
func PrintWarning(msg string)
PrintWarning prints a warning message with yellow [WARNING] prefix.
func PromptYesNo ¶
PromptYesNo displays a prompt and returns true if user responds y/yes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.