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

tui

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorPrimary   = lipgloss.Color("038") // sleek cyan
	ColorSecondary = lipgloss.Color("134") // royal purple
	ColorSuccess   = lipgloss.Color("34")  // vibrant green
	ColorWarning   = lipgloss.Color("220") // warm yellow
	ColorDanger    = lipgloss.Color("196") // rich red
	ColorDim       = lipgloss.Color("240") // slate grey
	ColorAccent    = lipgloss.Color("205") // modern magenta

	// Typography Styles
	StyleTitle = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorSecondary)

	StyleSubtitle = lipgloss.NewStyle().
					Foreground(ColorDim)

	StyleHeader = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorPrimary)

	// Panel & Border Styles
	StyleBorderCard = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(ColorDim).
					Padding(1, 2)

	StyleHighlightCard = lipgloss.NewStyle().
						Border(lipgloss.DoubleBorder()).
						BorderForeground(ColorPrimary).
						Padding(1, 2)

	// List Styles
	StyleSelectedRow = lipgloss.NewStyle().
						Background(lipgloss.Color("236")).
						Foreground(lipgloss.Color("255"))

	StyleFooter = lipgloss.NewStyle().
				Foreground(ColorDim).
				Italic(true)

	// Badge Styles
	StyleBadgeSuccess = lipgloss.NewStyle().
						Bold(true).
						Foreground(ColorSuccess)

	StyleBadgeWarning = lipgloss.NewStyle().
						Bold(true).
						Foreground(ColorWarning)

	StyleBadgeDim = lipgloss.NewStyle().
					Foreground(ColorDim)
)

Curated Style Tokens

Functions

func EnsureClaudeSkillsZip

func EnsureClaudeSkillsZip()

func IsInitialized

func IsInitialized(memoryPath string) bool

IsInitialized checks if Auxly has completed onboarding.

func NewApp

func NewApp(memoryPath string) *model

func RenderIndeterminateBar added in v1.0.11

func RenderIndeterminateBar(frame, width int, barColor lipgloss.Color) string

RenderIndeterminateBar renders an animated marquee for work that has no measurable sub-progress (an atomic step). A filled ▰ segment sweeps back and forth across a dim ▱ track, driven by an ever-incrementing frame counter, so the step reads as "working" instead of a determinate bar frozen at 0%.

func RenderMetricCard

func RenderMetricCard(emoji, label string, value int, highlight bool) string

RenderMetricCard builds a beautifully designed, highly professional numeric dashboard card.

func RenderProgressBar

func RenderProgressBar(current, total int, width int, barColor lipgloss.Color) string

RenderProgressBar builds a determinate ▰/▱ progress bar (the shared Auxly style).

func RenderTimelineNode

func RenderTimelineNode(timeStr, icon, body string, isSelected bool) string

RenderTimelineNode builds a vertical timeline node in the history view.

func Run

func Run(memoryPath string)

Run starts the TUI application.

func RunWizard

func RunWizard(memoryPath string)

RunWizard starts the interactive setup wizard.

Types

type OpenFileMsg

type OpenFileMsg struct {
	Filename string
	Content  string
	Editable bool
}

Jump to

Keyboard shortcuts

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