ui

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBanner

func GetBanner() string

GetBanner returns the styled ASCII art banner

func GetTerminalSize

func GetTerminalSize() (width int, height int, err error)

GetTerminalSize returns the current terminal dimensions

func IsTTY

func IsTTY() bool

IsTTY checks if the output is a terminal

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

func (s *Styles) RenderBold(text string) string

RenderBold renders text in bold with brand color

func (*Styles) RenderBox

func (s *Styles) RenderBox(content string) string

RenderBox renders content in a styled box

func (*Styles) RenderDim

func (s *Styles) RenderDim(text string) string

RenderDim renders text dimmed/faded

func (*Styles) RenderError

func (s *Styles) RenderError(msg string) string

RenderError renders an error message with icon

func (*Styles) RenderInfo

func (s *Styles) RenderInfo(msg string) string

RenderInfo renders an info message

func (*Styles) RenderSuccess

func (s *Styles) RenderSuccess(msg string) string

RenderSuccess renders a success message with icon

func (*Styles) RenderWarning

func (s *Styles) RenderWarning(msg string) string

RenderWarning renders a warning message with icon

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL