Documentation
¶
Index ¶
- Variables
- func Banner() string
- func DirExists(path string) bool
- func DiscoverInputFiles() []string
- func DiscoverInputFolders() []string
- func FileExists(path string) bool
- func HeaderStyle() lipgloss.Style
- func IsMarkdownOrYAML(path string) bool
- func MutedStyle() lipgloss.Style
- func PagentTheme() *huh.Theme
- func RunDashboard(dashOpts DashboardOptions) (*config.RunOptions, error)
- func SuccessStyle() lipgloss.Style
- func TitleStyle() lipgloss.Style
- type DashboardOptions
Constants ¶
This section is empty.
Variables ¶
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 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 ¶
FileExists checks if a file exists and is not a directory
func HeaderStyle ¶
HeaderStyle returns styled header for the dashboard
func IsMarkdownOrYAML ¶
IsMarkdownOrYAML checks if file has a supported extension
func MutedStyle ¶
MutedStyle returns style for muted/secondary text
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 ¶
SuccessStyle returns style for success messages