Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowLogin ¶ added in v0.0.19
func ShowLogin(title string, theme string, version string, authFunc func(string, string) error) (string, string, error)
ShowLogin displays a login form using tview. Returns the username, password, and error (if cancelled or failed).
func ShowMenu ¶
func ShowMenu(title string, options []string, details []string, startIdx int, defaultIdx int, theme string, version 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. Returns the index of the selected option (0-based relative to options), or error.