Documentation
¶
Overview ¶
Package choose ...
Package choose ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItemsKeys ¶
GetItemsKeys return a slice of string representing the item's keys.
func Run ¶
Run is used to prompt a list of available options to the user and retrieve the selection.
func ToListItem ¶
ToListItem converts a alice of strings in a slice of list.Item.
Types ¶
type Config ¶
type Config struct { Title string ListHeight int DefaultWidth int ErrorMsg string ShowHelp bool ShowStatusBar bool EnableFiltering bool // ShowHelp must be true otherwise you will now see the help // styles Styles Styles }
Config represents the struct to configure the tui command.
type Item ¶
Item represents an entry for choose (select) list.
func (Item) FilterValue ¶
FilterValue returns the current value of the filter.
Click to show internal directories.
Click to hide internal directories.