Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderSelection ¶
RenderSelection renders the selection menu.
func SearchCommand ¶
func SearchCommand() error
func UpdateInput ¶
UpdateInput handles text input updates.
Types ¶
type Model ¶
type Model struct {
Choice int // Index of the selected search category (e.g., 0 = Pokémon, 1 = Ability)
Chosen bool // Whether a category has been chosen yet
Quitting bool // Flag to indicate if the program is quitting
TextInput textinput.Model // The text input field used for search input
ShowResults bool // Whether to display the search results screen
SearchResults string // The formatted search results to be displayed
WarningMessage string // A warning message to show (e.g., empty input)
}
Model structure
Click to show internal directories.
Click to hide internal directories.