Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choose ¶
func Choose[Choice any](cmd *cobra.Command, prompt string, choices []Choice) (choice Choice, err error)
Choose offers the user a choice in their terminal of some available options, and returns the chosen option when they have made a valid selection. If there is only one available option, they won't be offered a choice and it will just be returned. It is an error to pass zero options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.