Documentation
¶
Overview ¶
Package model provides Bubble Tea models for CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupModel ¶
type CleanupModel struct {
// contains filtered or unexported fields
}
CleanupModel wraps styles.CleanupModel for standalone use.
func NewCleanupModel ¶
func NewCleanupModel(theme *styles.Theme, historyUC *usecase.SearchHistoryUseCase) CleanupModel
NewCleanupModel creates a new cleanup command model.
type DmenuModel ¶
type DmenuModel struct {
// contains filtered or unexported fields
}
DmenuModel is the Bubble Tea model for interactive dmenu.
func NewDmenuModel ¶
func NewDmenuModel(theme *styles.Theme, historyUC *usecase.SearchHistoryUseCase) DmenuModel
NewDmenuModel creates a new dmenu model.
func (DmenuModel) SelectedURL ¶
func (m DmenuModel) SelectedURL() string
SelectedURL returns the URL selected by the user.
type HistoryListModel ¶
type HistoryListModel struct {
// contains filtered or unexported fields
}
HistoryListModel is a simpler non-interactive model for JSON output.
func NewHistoryListModel ¶
func NewHistoryListModel(ctx context.Context, historyUC *usecase.SearchHistoryUseCase, maxEntries int) HistoryListModel
NewHistoryListModel creates a model for list output.
func (HistoryListModel) Entries ¶
func (m HistoryListModel) Entries() []*entity.HistoryEntry
Entries returns the loaded entries.
func (HistoryListModel) Error ¶
func (m HistoryListModel) Error() error
Error returns any error that occurred.
type HistoryModel ¶
type HistoryModel struct {
// contains filtered or unexported fields
}
HistoryModel is the Bubble Tea model for interactive history browser.
func NewHistoryModel ¶
func NewHistoryModel(ctx context.Context, theme *styles.Theme, historyUC *usecase.SearchHistoryUseCase) HistoryModel
NewHistoryModel creates a new history browser model.
type PurgeModel ¶
type PurgeModel struct {
// contains filtered or unexported fields
}
PurgeModel wraps styles.PurgeModel for standalone CLI use.
func NewPurgeModel ¶
func NewPurgeModel(theme *styles.Theme, purgeUC *usecase.PurgeDataUseCase) PurgeModel
NewPurgeModel creates a new purge command model.
type StatsModel ¶
type StatsModel struct {
// contains filtered or unexported fields
}
StatsModel displays history analytics.
func NewStatsModel ¶
func NewStatsModel(theme *styles.Theme, historyUC *usecase.SearchHistoryUseCase) StatsModel
NewStatsModel creates a new stats display model.