Documentation
¶
Overview ¶
Package ui provides styled terminal output for the aisw CLI.
Index ¶
- Constants
- func ActiveBadge(active bool) string
- func Badge(text, color string) string
- func BlueText(s string) string
- func BoldBlue(s string) string
- func BoldCyan(s string) string
- func BoldGreen(s string) string
- func BoldRed(s string) string
- func BoldText(s string) string
- func BoldYellow(s string) string
- func Box(title, body string)
- func CyanText(s string) string
- func DimText(s string) string
- func Error(msg string)
- func GrayText(s string) string
- func GreenText(s string) string
- func Header(title string)
- func Hint(msg string)
- func Info(msg string)
- func KeyValue(label, value string, width int)
- func MagentaText(s string) string
- func ProviderBadge(provider string) string
- func RedText(s string) string
- func Separator()
- func StatusBadge(status string) string
- func SubHeader(title string)
- func Success(msg string)
- func Warning(msg string)
- func YellowText(s string) string
- type Table
Constants ¶
View Source
const ( Reset = "\033[0m" Bold = "\033[1m" Dim = "\033[2m" Italic = "\033[3m" Underline = "\033[4m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" White = "\033[37m" Gray = "\033[90m" )
ANSI color codes.
View Source
const ( SymbolCheck = "✓" SymbolCross = "✗" SymbolWarning = "!" SymbolDot = "●" SymbolArrow = "→" SymbolInfo = "ℹ" SymbolStar = "★" )
Symbols for status indicators.
Variables ¶
This section is empty.
Functions ¶
func ActiveBadge ¶
ActiveBadge returns a styled active/inactive indicator.
func BoldYellow ¶
func MagentaText ¶
func ProviderBadge ¶
ProviderBadge returns a colored provider name.
func StatusBadge ¶
StatusBadge returns a colored status indicator.
func YellowText ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.