tui

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableColor

func DisableColor()

func FormatQuotaOverview

func FormatQuotaOverview(results []AccountResult, style QuotaStyle, currentAccount string) string

func GetTerminalWidth

func GetTerminalWidth() int

func SetTerminalWidth

func SetTerminalWidth(w int)

Types

type AccountResult

type AccountResult struct {
	Name      string
	Usage     *models.Usage
	Error     string
	IsCurrent bool
}

type QuotaStyle

type QuotaStyle struct {
	WarningThreshold int
	DangerThreshold  int
}

func DefaultQuotaStyle

func DefaultQuotaStyle() QuotaStyle

type Theme

type Theme struct {
	Primary   lipgloss.Style
	Success   lipgloss.Style
	Warning   lipgloss.Style
	Danger    lipgloss.Style
	Muted     lipgloss.Style
	Border    lipgloss.Style
	Title     lipgloss.Style
	Header    lipgloss.Style
	Dim       lipgloss.Style
	Bold      lipgloss.Style
	Error     lipgloss.Style
	Account   lipgloss.Style
	Active    lipgloss.Style
	BarFilled lipgloss.Style
	BarEmpty  lipgloss.Style
}

func NewTheme

func NewTheme() Theme

Jump to

Keyboard shortcuts

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