interactive

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidValue   = errors.New("invalid value")
	ErrRequiredValue  = errors.New("required value")
	ErrNonInteractive = errors.New("refusing to run with non-interactive flag")
)

Functions

func All

func All(funcs ...survey.Validator) survey.Validator

func Ask

func Ask(question string, validate survey.Validator) (string, error)

func AskInt32

func AskInt32(question string, validate survey.Validator) (int32, error)

func AskMissingRequiredFlags

func AskMissingRequiredFlags(command *cobra.Command)

func AskPath

func AskPath(question string, value string, validate survey.Validator) (string, error)

func AskSecretWithHelp

func AskSecretWithHelp(question string, help string, validate survey.Validator) (string, error)

func AssertBetween

func AssertBetween(min int32, max int32) survey.Validator

func AssertMinimumLength

func AssertMinimumLength(length int) survey.Validator

func Choose

func Choose(question string, items []string) (int, string, error)

func ChooseWithSize

func ChooseWithSize(size int, question string, items []string) (int, string, error)

func Confirm

func Confirm(question string) (bool, error)

func Lowercase

func Lowercase() survey.Validator

Types

This section is empty.

Jump to

Keyboard shortcuts

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