Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( NoStyle = lipgloss.NewStyle() Faint = lipgloss.NewStyle().Faint(true) Red = lipgloss.NewStyle().Foreground(lipgloss.Red) Green = lipgloss.NewStyle().Foreground(lipgloss.Green) Yellow = lipgloss.NewStyle().Foreground(lipgloss.Yellow) Bold = lipgloss.NewStyle().Bold(true) BoldRed = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Red) BoldGreen = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Green) BoldYellow = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Yellow) NameStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("152")) )
Functions ¶
func Confirm ¶
Confirm shows a confirmation prompt with a yellow-styled title. If title is empty, it defaults to "Do you want to continue?".
func FormatImage ¶
FormatImage renders an image reference with the given style, using a faint colon separator for tagged images. Returns the styled original string if parsing fails.
func IsStdinTerminal ¶
func IsStdinTerminal() bool
IsStdinTerminal checks if the standard input is a terminal (TTY).
func IsStdoutTerminal ¶
func IsStdoutTerminal() bool
IsStdoutTerminal checks if the standard output is a terminal (TTY).
func NewTable ¶
NewTable creates a borderless table with bold headers and consistent padding for CLI output.
func PrintWarning ¶
func PrintWarning(msg string)
func TerminalWidth ¶
func TerminalWidth() int
TerminalWidth returns the width of the terminal. Returns 0 if stdout is not a terminal or the width cannot be determined.
func ThemeConfirm ¶
ThemeConfirm returns a huh theme with a bold yellow title style for the confirmation prompt.
Types ¶
This section is empty.