ui

package
v0.0.0-...-abf550e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyString = errors.New("empty string")
)

errors

Functions

func PromptPassword

func PromptPassword(promptLabel string, validateFunc promptui.ValidateFunc) (string, error)

PromptPassword formats a prompt for password request, returns its result and validation error if any

func PromptText

func PromptText(promptLabel, promptDefault string, validateFunc promptui.ValidateFunc) (string, error)

PromptText formats a promt and returns its result

func PromptTrueFalseBool

func PromptTrueFalseBool(promptLabel, trueString, falseString string, defaultValue bool) (bool, error)

PromptTrueFalseBool returns a prompt for true, false questions - promptLabel: Text to use as label - trueString: Text for true - falseString: Text for false - defaultValue: default value

func ValidationNotEmptyString

func ValidationNotEmptyString(input string) error

ValidationNotEmptyString validates the string is not empty

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL