Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string)

func GetHuhTheme

func GetHuhTheme() *huh.Theme

func Info

func Info(msg string)

func IsInteractive

func IsInteractive() bool

IsInteractive returns true if standard input is attached to a terminal. This is used to determine if interactive TUI elements (like huh forms) should be launched.

func PrintBudgetBar

func PrintBudgetBar(name string, spend, limit float64)

func PrintHeader

func PrintHeader(title string)

func PrintKeyCard

func PrintKeyCard(name, provider, rawKey, hash string)
func PrintLogo()

func PrintSummary

func PrintSummary(pass bool, issues int)

func PrintTable

func PrintTable(headers []string, rows [][]string)

func Success

func Success(msg string)

func Warn

func Warn(msg string)

Types

type AppModel

type AppModel struct {

	// Exported so main.go can read the user's selection
	Action string
	// contains filtered or unexported fields
}

func NewApp

func NewApp() AppModel

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

func (m AppModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (AppModel) View

func (m AppModel) View() string

Jump to

Keyboard shortcuts

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