Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskPassword ¶
func AskPassword() (password string)
func MenuItemNotImplemented ¶
func ValidMenuOption ¶
func ValidMenuOption(length int) survey.Validator
ValidMenuOption requires a valid number or the empty string (pressing Enter)
func WaitAnyKey ¶
func WaitAnyKey()
Types ¶
type HandlerFunc ¶
The HandlerFunc type is an adapter to allow the use of ordinary functions as Menu handlers. If f is a function with the appropriate signature, HandlerFunc(f) is a Handler that calls f.
type Menu ¶
type MenuItem ¶
type MenuItem struct { Title string Action HandlerFunc }
Click to show internal directories.
Click to hide internal directories.