Documentation ¶
Index ¶
- Variables
- func AddFlag(flags *pflag.FlagSet)
- func Enable()
- func Enabled() bool
- func GetBool(input Input) (a bool, err error)
- func GetCert(input Input) (a string, err error)
- func GetFloat(input Input) (a float64, err error)
- func GetIPNet(input Input) (a net.IPNet, err error)
- func GetInt(input Input) (a int, err error)
- func GetMultipleOptions(input Input) ([]string, error)
- func GetOption(input Input) (a string, err error)
- func GetPassword(input Input) (a string, err error)
- func GetString(input Input) (a string, err error)
- func IsCIDR(val interface{}) error
- func IsCert(filepath interface{}) error
- func IsURL(val interface{}) error
- func PrintHelp(help Help) error
- type Help
- type Input
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxLength = func(length int) Validator { return Validator(survey.MaxLength(length)) }
Functions ¶
func Enabled ¶
func Enabled() bool
Enabled retursn a boolean flag that indicates if the interactive mode is enabled.
func GetMultipleOptions ¶
Asks for multiple options selection
func GetPassword ¶
Gets password input from the command line
func IsCert ¶ added in v1.1.1
func IsCert(filepath interface{}) error
IsCert validates whether the given filepath is a valid cert file
Types ¶
Click to show internal directories.
Click to hide internal directories.