Documentation ¶
Index ¶
- func CurrentDirectoryOnEmpty(ptr *string, key string) error
- func DefaultOnEmpty(def string) func(*string, string) error
- func FailOnEmpty(ptr *string, key string) error
- func GeneratePasswordOnEmpty(ptr *string, key string) error
- func ReadPassword(prompt string, ptr *string, key string, v valid) error
- func ReadPasswordSubtle(prompt string, ptr *string, key string, v valid) error
- func ReadString(reader *bufio.Reader, prompt string, ptr *string, key string, v valid) error
- func RetryOnEmpty(ptr *string, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentDirectoryOnEmpty ¶
CurrentDirectoryOnEmpty replaces pointer value with current directory if the value is an empty string.
func DefaultOnEmpty ¶
DefaultOnEmpty replaces pointer value with default value if the value is an empty string.
func FailOnEmpty ¶
FailOnEmpty returns an error if the pointer value is an empty string.
func GeneratePasswordOnEmpty ¶
GeneratePasswordOnEmpty replaces pointer value with a newly generated password if the value is an empty string.
func ReadPassword ¶
ReadPassword reads password into ptr from stdin - input silenced.
func ReadPasswordSubtle ¶
ReadPasswordSubtle reads password from stdin, but prompt goes to stderr rather than stdout.
func ReadString ¶
ReadString reads string into ptr from stdin.
func RetryOnEmpty ¶
RetryOnEmpty returns a retryError if the value in the ptr is an empty string.
Types ¶
This section is empty.