Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowMenu ¶
func ShowMenu(title string, options []string, details []string, startIdx int, defaultIdx int, theme string) (int, error)
ShowMenu displays a menu using tview. options is a slice of option names. details is a slice of detail strings corresponding to options (optional, can be nil). startIdx is the index to start numbering options. defaultIdx is the index of the option to pre-select. theme is the path to the dialogrc file (currently ignored). Returns the index of the selected option (0-based relative to options), or error.
Types ¶
This section is empty.