Documentation
¶
Index ¶
- type KeyMap
- type Model
- func (m *Model) Blur()
- func (m *Model) Focus() tea.Cmd
- func (m *Model) GetWidth() int
- func (m *Model) SelectTestCase(index int) tea.Cmd
- func (m *Model) Selected() *core.TestCase
- func (m *Model) SetHeight(height int)
- func (m *Model) SetStyles(styles Styles)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type StyleState
- type Styles
- type TestCaseExecuteMsg
- type TestCaseSelectedMsg
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
type Model ¶
type Model struct {
Title string
Items core.TestCaseList
KeyMap KeyMap
// contains filtered or unexported fields
}
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 ¶
type TestCaseExecuteMsg ¶
type TestCaseSelectedMsg ¶
Click to show internal directories.
Click to hide internal directories.