Documentation
¶
Index ¶
- Variables
- func ErrorStyle() lipgloss.Style
- func HeaderContainerStyle() lipgloss.Style
- func InfoStyle() lipgloss.Style
- func MutedTextStyle() lipgloss.Style
- func PrimaryTextStyle() lipgloss.Style
- func SecondaryTextStyle() lipgloss.Style
- func SuccessStyle() lipgloss.Style
- func WarningContainerStyle() lipgloss.Style
- func WarningStyle() lipgloss.Style
- type CleanupItem
- type DeleteProgress
- type InteractiveUI
- type ItemDelegate
- type Model
- type PathDisplayMode
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = struct { Primary lipgloss.Color Secondary lipgloss.Color Success lipgloss.Color Warning lipgloss.Color Error lipgloss.Color Info lipgloss.Color TextPrimary lipgloss.Color TextSecondary lipgloss.Color TextMuted lipgloss.Color TextDim lipgloss.Color BgPrimary lipgloss.Color BgSecondary lipgloss.Color BgMuted lipgloss.Color BorderPrimary lipgloss.Color BorderSecondary lipgloss.Color ProgressStart lipgloss.Color ProgressEnd lipgloss.Color }{ Primary: lipgloss.Color("#7C3AED"), Secondary: lipgloss.Color("#4ECDC4"), Success: lipgloss.Color("#10B981"), Warning: lipgloss.Color("#F59E0B"), Error: lipgloss.Color("#EF4444"), Info: lipgloss.Color("#3B82F6"), TextPrimary: lipgloss.Color("#E5E7EB"), TextSecondary: lipgloss.Color("#9CA3AF"), TextMuted: lipgloss.Color("#6B7280"), TextDim: lipgloss.Color("#4B5563"), BgPrimary: lipgloss.Color("#1F2937"), BgSecondary: lipgloss.Color("#374151"), BgMuted: lipgloss.Color("#065F46"), BorderPrimary: lipgloss.Color("#374151"), BorderSecondary: lipgloss.Color("#6B7280"), ProgressStart: lipgloss.Color("#FF6B6B"), ProgressEnd: lipgloss.Color("#4ECDC4"), }
Functions ¶
func ErrorStyle ¶
func HeaderContainerStyle ¶
func MutedTextStyle ¶
func PrimaryTextStyle ¶
func SecondaryTextStyle ¶
func SuccessStyle ¶
func WarningContainerStyle ¶
func WarningStyle ¶
Types ¶
type CleanupItem ¶
type CleanupItem struct {
// contains filtered or unexported fields
}
func (CleanupItem) Description ¶
func (i CleanupItem) Description() string
func (CleanupItem) FilterValue ¶
func (i CleanupItem) FilterValue() string
func (CleanupItem) Title ¶
func (i CleanupItem) Title() string
type DeleteProgress ¶
type InteractiveUI ¶
type InteractiveUI struct {
// contains filtered or unexported fields
}
func New ¶
func New(targets []scanner.CleanupTarget) *InteractiveUI
func NewWithScanner ¶
func NewWithScanner(targets []scanner.CleanupTarget, scannerInstance *scanner.Scanner) *InteractiveUI
func (*InteractiveUI) GetModel ¶
func (ui *InteractiveUI) GetModel() *Model
func (*InteractiveUI) SelectTargets ¶
func (ui *InteractiveUI) SelectTargets() ([]scanner.CleanupTarget, error)
func (*InteractiveUI) SetCleaner ¶
func (ui *InteractiveUI) SetCleaner(c *cleaner.Cleaner)
type ItemDelegate ¶
type ItemDelegate struct {
// contains filtered or unexported fields
}
func (ItemDelegate) Height ¶
func (d ItemDelegate) Height() int
func (ItemDelegate) Spacing ¶
func (d ItemDelegate) Spacing() int
type PathDisplayMode ¶
type PathDisplayMode int
const ( PathDisplaySmart PathDisplayMode = iota PathDisplayCondensed PathDisplayFull )
func (PathDisplayMode) String ¶
func (pdm PathDisplayMode) String() string
Click to show internal directories.
Click to hide internal directories.