Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const DefaultSelectSize + const NeedPromptFlag + const SELECTICON — darwin/amd64, linux/amd64, windows/amd64 + func OptionalInput(ans interface{}) error + func PromptBoolSelect(label string) (bool, error) + func PromptOptionalString(name string, opts ...PromptOption) (string, error) + func PromptRequiredInt32(name string, opts ...PromptOption) (int32, error) + func PromptRequiredString(name string, opts ...PromptOption) (string, error) + func PromptSelectWithFunc(label string, size int, getItemsFunc GetItemsFunc, funcArgs ...interface{}) (interface{}, error) + func PromptStringMultiSelect(label string, size int, items []string) ([]string, error) + func PromptStringSelect(label string, size int, items []string) (string, error) + func PromptStringSlice(label string) ([]string, error) + func PromptStringWithValidator(name string, validator survey.Validator, opts ...PromptOption) (string, error) + func SelectSubCommand(cmd *cobra.Command, args []string) + func ValidateIntegerNumberInput(ans interface{}) error + type GetItemsFunc func(...interface{}) ([]interface{}, error) + type PromptOption func(o *PromptOptions) + func WithInputMessage(message string) PromptOption + type PromptOptions struct