list

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Up      key.Binding
	Down    key.Binding
	Create  key.Binding
	Delete  key.Binding
	Execute key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

type Model struct {
	Title string

	Items  core.TestCaseList
	KeyMap KeyMap
	// contains filtered or unexported fields
}

func New

func New() Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Focus

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

func (*Model) GetWidth

func (m *Model) GetWidth() int

func (*Model) SelectTestCase

func (m *Model) SelectTestCase(index int) tea.Cmd

func (*Model) Selected

func (m *Model) Selected() *core.TestCase

Returns the currently selected test case

func (*Model) SetHeight

func (m *Model) SetHeight(height int)

func (*Model) SetStyles

func (m *Model) SetStyles(styles Styles)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type StyleState

type StyleState struct {
	SelectedItem lipgloss.Style
	ItemDesc     lipgloss.Style
}

type Styles

type Styles struct {
	List  lipgloss.Style
	Title lipgloss.Style
	Item  lipgloss.Style

	Focused StyleState
	Blurred StyleState

	PendingItemTitle lipgloss.Style
	CorrectItemTitle lipgloss.Style
	WrongItemTitle   lipgloss.Style
	ErrorItemTitle   lipgloss.Style
}

func DefaultStyles

func DefaultStyles(isDark bool) Styles

type TestCaseExecuteMsg

type TestCaseExecuteMsg struct {
	TestCase *core.TestCase
}

type TestCaseSelectedMsg

type TestCaseSelectedMsg struct {
	Index    int
	TestCase *core.TestCase
}

Jump to

Keyboard shortcuts

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