Documentation
¶
Index ¶
- func GetBanner() string
- func GetTerminalSize() (width int, height int, err error)
- func IsTTY() bool
- type Styles
- func (s *Styles) RenderBold(text string) string
- func (s *Styles) RenderBox(content string) string
- func (s *Styles) RenderDim(text string) string
- func (s *Styles) RenderError(msg string) string
- func (s *Styles) RenderInfo(msg string) string
- func (s *Styles) RenderSuccess(msg string) string
- func (s *Styles) RenderWarning(msg string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTerminalSize ¶
GetTerminalSize returns the current terminal dimensions
Types ¶
type Styles ¶
type Styles struct {
Success lipgloss.Style
Error lipgloss.Style
Info lipgloss.Style
Warning lipgloss.Style
Header lipgloss.Style
Box lipgloss.Style
Brand lipgloss.Style
}
Styles contains reusable UI styles
func NewStyles ¶
func NewStyles() *Styles
NewStyles creates a new Styles instance with default styling
func (*Styles) RenderBold ¶
RenderBold renders text in bold with brand color
func (*Styles) RenderError ¶
RenderError renders an error message with icon
func (*Styles) RenderInfo ¶
RenderInfo renders an info message
func (*Styles) RenderSuccess ¶
RenderSuccess renders a success message with icon
func (*Styles) RenderWarning ¶
RenderWarning renders a warning message with icon
Click to show internal directories.
Click to hide internal directories.