Documentation ¶
Overview ¶
Package inputs handles the user interactions
Index ¶
- func GetFlagBoolVal(cmd *cobra.Command, flag string) (bool, error)
- func GetFlagStringArrayVal(cmd *cobra.Command, flag string) ([]string, error)
- func GetFlagStringVal(cmd *cobra.Command, flag string) (string, error)
- func HasProvidedValidID() func(cmd *cobra.Command, args []string) error
- func IsArgValid(arg string) bool
- func IsPasswordValid(passphrase string) bool
- func IsValidSingleArg(args []string) bool
- func PromptForPassword(label string, validate promptui.ValidateFunc) (string, error)
- func PromptForSelect(l string, items []string) (string, error)
- func PromptForString(label string, validate promptui.ValidateFunc) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFlagBoolVal ¶
GetFlagBoolVal method returns the Boolean flag value
func GetFlagStringArrayVal ¶
GetFlagStringArrayVal method returns the String array flag value
func GetFlagStringVal ¶
GetFlagStringVal method returns the String flag value
func HasProvidedValidID ¶
HasProvidedValidID returns a function which validates the ID input
func IsArgValid ¶
IsArgValid method check whether the CMD arg are valid or not
func IsPasswordValid ¶
IsPasswordValid method check whether the Password is valid or not
func IsValidSingleArg ¶
IsValidSingleArg method check whether the CMD args are valid or not
func PromptForPassword ¶
func PromptForPassword(label string, validate promptui.ValidateFunc) (string, error)
PromptForPassword function prompt for password and returns the input
func PromptForSelect ¶
PromptForSelect start selection and return the selected value
func PromptForString ¶
func PromptForString(label string, validate promptui.ValidateFunc) (string, error)
PromptForString function prompt for string and returns the input
Types ¶
This section is empty.