Documentation
¶
Index ¶
Constants ¶
const ( KeyQuitManager = "q" KeyEscapeManager = "esc" KeySpaceManager = "space" )
Keyboard shortcuts for manager
const ( ModalBorderColor = "6" ModalTitle = "Bubble Tea Overlay" ModalContent = "Hello! I'm in a modal window.\n\nPress <space> to close the window." )
Modal styling constants
const ( ShortListThreshold = 50 StatusColumnWidth = 4 EllipsisLength = 3 NotStartedDuration = "<not started>" )
Display constants for step formatting
const ( NameColumnPercent = 65 TagsColumnPercent = 15 DurationColumnPercent = 20 )
Column width percentages for wide layouts
const ( ListWidthPercentage = 30.0 LayoutAreaHeight = 3 FilterInputHeightOffset = 1 TagsHeightOffset = 1 AlignHorizontalBreakpoint = 130 )
UI dimensions and layout constants
const ( KeyFilter = "/" KeyEscape = "esc" KeyTab = "tab" KeyEnter = "enter" KeyQuit = "ctrl+c" KeyQ = "q" )
Keyboard shortcuts
const Logo = `` /* 4821-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v0.0.30
type Manager struct {
// contains filtered or unexported fields
}
Manager implements tea.Model and manages the overall UI state including modals It coordinates between the main UI and any overlay components
func NewManager ¶ added in v0.0.30
NewManager creates a new Manager instance with the given background UI model
func (*Manager) Init ¶ added in v0.0.30
Init initializes the Manager on program load It implements part of the tea.Model interface
type Modal ¶ added in v0.0.30
type Modal struct {
// contains filtered or unexported fields
}
Modal implements tea.Model and represents a modal dialog overlay It provides a simple information display with styling
func (*Modal) Init ¶ added in v0.0.30
Init initializes the Modal on program load It implements part of the tea.Model interface
type PipelineDoneMsg ¶ added in v0.0.29
type PipelineDoneMsg struct {
Status StepStatus
Error error
}
PipelineDoneMsg represents a message when the pipeline is complete
type StepMsg ¶ added in v0.0.29
type StepMsg struct {
Name string
DisplayName string
Tags []processor.Tag
Status StepStatus
// contains filtered or unexported fields
}
StepMsg represents a pipeline step with its state and UI components
func NewStep ¶ added in v0.0.29
func NewStep() StepMsg
NewStep creates a new StepMsg with initialized components
func (StepMsg) Description ¶ added in v0.0.29
Description returns the description for list display (used in narrow layouts)
func (StepMsg) FilterValue ¶ added in v0.0.29
FilterValue returns the value used for filtering
func (*StepMsg) TagsAsString ¶ added in v0.0.29
TagsAsString returns a formatted string representation of all tags
func (StepMsg) WithStatus ¶ added in v0.0.29
func (t StepMsg) WithStatus(status StepStatus) StepMsg
WithStatus creates a new StepMsg with the given status, updating timestamps
type StepStatus ¶
type StepStatus int
StepStatus represents the current state of a pipeline step
const ( StepStatusWaiting StepStatus = iota StepStatusRunning StepStatusFailed StepStatusDone StepStatusSkipped )
func (StepStatus) Render ¶
func (e StepStatus) Render() string
Render returns the styled visual representation of the step status
func (StepStatus) String ¶
func (e StepStatus) String() string
String returns the string representation of the step status