prompt

package
v0.0.0-...-65e53b4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ask = survey.Ask
View Source
var AskOne = survey.AskOne
View Source
var Confirm = func(result *bool, prompt string, defaultVal bool) error {
	p := &survey.Confirm{
		Message: prompt,
		Default: defaultVal,
	}
	return survey.AskOne(p, result)
}

Functions

func AskMultiline

func AskMultiline(response interface{}, name, question string, defaultVal string) error

func AskQuestionWithInput

func AskQuestionWithInput(response interface{}, name, question, defaultVal string, isRequired bool) error

func MultiSelect

func MultiSelect(response interface{}, name, question string, options []string, opts ...survey.AskOpt) error

func Select

func Select(response interface{}, name string, question string, options []string, opts ...survey.AskOpt) error

func SelectOne

func SelectOne(response interface{}, question string, options []string, opts ...survey.AskOpt) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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