Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExerciseItem ¶
type ExerciseItem struct {
// contains filtered or unexported fields
}
ExerciseItem represents an exercise in the list
func (ExerciseItem) Description ¶
func (i ExerciseItem) Description() string
func (ExerciseItem) FilterValue ¶
func (i ExerciseItem) FilterValue() string
func (ExerciseItem) Title ¶
func (i ExerciseItem) Title() string
type SearchModel ¶
type SearchModel struct {
// contains filtered or unexported fields
}
SearchModel is the interactive exercise search model
func NewSearchModel ¶
func NewSearchModel(client *api.Client) SearchModel
NewSearchModel creates a new exercise search model
func (SearchModel) Selected ¶
func (m SearchModel) Selected() *api.ExerciseTemplate
Selected returns the selected exercise, if any
type TableModel ¶ added in v0.3.0
type TableModel struct {
// contains filtered or unexported fields
}
TableModel is the interactive exercise table model
func NewTableModel ¶ added in v0.3.0
func NewTableModel(client *api.Client) TableModel
NewTableModel creates a new exercise table model
func (TableModel) GetResult ¶ added in v0.3.0
func (m TableModel) GetResult() TableResult
GetResult returns the table result
func (TableModel) Init ¶ added in v0.3.0
func (m TableModel) Init() tea.Cmd
Init initializes the model
type TableResult ¶ added in v0.3.0
type TableResult struct {
Selected *api.ExerciseTemplate
Cancelled bool
}
TableResult represents the result of the table interaction
Click to show internal directories.
Click to hide internal directories.