tui

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupProgressMsg added in v0.5.0

type CleanupProgressMsg struct {
	Completed int
	Total     int
}

type CopyNoticeExpiredMsg added in v0.5.0

type CopyNoticeExpiredMsg struct{}

type DeprecationEntry added in v0.7.0

type DeprecationEntry struct {
	TestName string
	Message  string
	Details  string
	WorkerID int
	Expanded bool
}

type ErrorEntry

type ErrorEntry struct {
	TestName string
	Message  string
	Details  string
	WorkerID int
	Expanded bool
}

type FinishMsg

type FinishMsg struct{}

type KeyMap

type KeyMap struct {
	Up       key.Binding
	Down     key.Binding
	Enter    key.Binding
	Left     key.Binding
	Right    key.Binding
	Tab      key.Binding
	Quit     key.Binding
	PageUp   key.Binding
	PageDown key.Binding
	Copy     key.Binding
	CopyAll  key.Binding
	Retry    key.Binding
	RerunAll key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(opts output.StartOptions, actionCh chan<- RetryAction) *Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

type Panel

type Panel int
const (
	PanelWorkers Panel = iota
	PanelRunning
	PanelErrors
)

type RetryAction added in v0.6.0

type RetryAction = output.RetryAction

type RetryStartMsg added in v0.6.0

type RetryStartMsg struct {
	Attempt     int
	TestCount   int
	WorkerCount int
	WorkerIDs   []int
}

type RunPhase

type RunPhase int
const (
	PhaseRunning RunPhase = iota
	PhaseCleanup
	PhaseComplete
	PhaseExploring
)

type Styles

type Styles struct {
	Title       lipgloss.Style
	TestPassed  lipgloss.Style
	TestFailed  lipgloss.Style
	TestRunning lipgloss.Style
	TestSkipped lipgloss.Style
	ErrorMsg    lipgloss.Style
	ErrorDetail lipgloss.Style
	HelpBar     lipgloss.Style
	Cursor      lipgloss.Style
	Panel       lipgloss.Style
	ActivePanel lipgloss.Style
	Dim         lipgloss.Style
	Bold        lipgloss.Style

	IconRunning string
	IconExpand  string
	IconCollaps string
}

func DefaultStyles

func DefaultStyles() Styles

type TUIOutput

type TUIOutput struct {
	// contains filtered or unexported fields
}

func New

func New() *TUIOutput

func (*TUIOutput) AwaitRetry added in v0.6.0

func (t *TUIOutput) AwaitRetry() output.RetryAction

func (*TUIOutput) CleanupProgress added in v0.5.0

func (t *TUIOutput) CleanupProgress(completed, total int)

func (*TUIOutput) Finish

func (t *TUIOutput) Finish()

func (*TUIOutput) RetryStart added in v0.6.0

func (t *TUIOutput) RetryStart(opts output.RetryStartOptions)

func (*TUIOutput) SetOnCancel added in v0.5.0

func (t *TUIOutput) SetOnCancel(fn func())

func (*TUIOutput) Start

func (t *TUIOutput) Start(opts output.StartOptions)

func (*TUIOutput) WorkerComplete

func (t *TUIOutput) WorkerComplete(workerID int, err error)

func (*TUIOutput) WorkerLine

func (t *TUIOutput) WorkerLine(workerID int, line string)

func (*TUIOutput) WorkerStart

func (t *TUIOutput) WorkerStart(workerID, testCount int)

type TestCountMsg

type TestCountMsg struct {
	WorkerID int
	Count    int
}

type TestDeprecationMsg added in v0.7.0

type TestDeprecationMsg struct {
	WorkerID int
	TestName string
	Message  string
	Details  string
}

type TestFailMsg

type TestFailMsg struct {
	WorkerID int
	TestName string
	Message  string
	Details  string
}

type TestNode

type TestNode struct {
	Key          string
	Name         string
	Status       TestStatus
	ErrorMessage string
	ErrorDetails string
	WorkerID     int
}

type TestPassMsg

type TestPassMsg struct {
	WorkerID int
	TestName string
}

type TestSkipMsg

type TestSkipMsg struct {
	WorkerID int
	TestName string
	Message  string
}

type TestStartMsg

type TestStartMsg struct {
	WorkerID    int
	TestKey     string
	DisplayName string
}

type TestStatus

type TestStatus int
const (
	StatusPending TestStatus = iota
	StatusRunning
	StatusPassed
	StatusFailed
	StatusSkipped
)

type TickMsg

type TickMsg struct{}

type WorkerCompleteMsg

type WorkerCompleteMsg struct {
	WorkerID int
	Error    error
}

type WorkerNode

type WorkerNode struct {
	ID           int
	Tests        []*TestNode
	Completed    int
	Total        int
	Failed       int
	HasTestCount bool
	TestFiles    int
}

type WorkerStartMsg

type WorkerStartMsg struct {
	WorkerID  int
	TestCount int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL