Documentation
¶
Overview ¶
Package tui provides Bubble Tea based TUI components for image compression progress display.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchCompleteMsg ¶
type BatchCompleteMsg struct {
Results []processor.BatchResult
}
BatchCompleteMsg notifies the TUI that batch processing has completed.
type BatchErrorMsg ¶
type BatchErrorMsg struct {
Err error
}
BatchErrorMsg notifies the TUI that an overall batch processing error occurred.
type BatchResultInfo ¶
BatchResultInfo holds summary info about a failed batch result for display.
type BatchStartMsg ¶
type BatchStartMsg struct {
TotalFiles int
}
BatchStartMsg notifies the TUI that batch processing has started.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubble Tea model for the progress bar TUI.
func (Model) CurrentFile ¶
CurrentFile returns the currently processing file name.
func (Model) TotalFiles ¶
TotalFiles returns the total number of files to process.
type ProgressMsg ¶
ProgressMsg wraps processor.Progress for Bubble Tea message passing.
type State ¶
type State int
State represents the TUI state.
const ( // StateWaiting indicates the TUI is waiting for processing to start. StateWaiting State = iota // StateProcessing indicates batch processing is in progress. StateProcessing // StateCompleted indicates batch processing has completed. StateCompleted // StateError indicates an error occurred during batch processing. StateError )