tui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorPrimary   = lipgloss.Color("6")   // Teal
	ColorSecondary = lipgloss.Color("14")  // Bright cyan
	ColorMuted     = lipgloss.Color("241") // Gray
	ColorSuccess   = lipgloss.Color("42")  // Green
)

Colors matching gum's aesthetic

Functions

func Banner() string

Banner returns the styled app banner

func DirExists

func DirExists(path string) bool

DirExists checks if a directory exists

func DiscoverInputFiles

func DiscoverInputFiles() []string

DiscoverInputFiles finds potential input files in the current directory Returns files sorted by modification time (most recent first), limited to 10

func DiscoverInputFolders

func DiscoverInputFolders() []string

DiscoverInputFolders returns folders that might contain input files Includes both top-level folders and their immediate subfolders

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists and is not a directory

func HeaderStyle

func HeaderStyle() lipgloss.Style

HeaderStyle returns styled header for the dashboard

func IsMarkdownOrYAML

func IsMarkdownOrYAML(path string) bool

IsMarkdownOrYAML checks if file has a supported extension

func MutedStyle

func MutedStyle() lipgloss.Style

MutedStyle returns style for muted/secondary text

func PagentTheme

func PagentTheme() *huh.Theme

PagentTheme returns a gum-inspired theme for forms

func RunDashboard

func RunDashboard(dashOpts DashboardOptions) (*config.RunOptions, error)

RunDashboard displays the interactive single-screen form. Returns nil, nil if the user cancels.

func SuccessStyle

func SuccessStyle() lipgloss.Style

SuccessStyle returns style for success messages

func TitleStyle

func TitleStyle() lipgloss.Style

TitleStyle returns style for section titles

Types

type DashboardOptions

type DashboardOptions struct {
	PrefilledInput string
	Config         *config.Config
	Accessible     bool
}

DashboardOptions configures the dashboard

Jump to

Keyboard shortcuts

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