prompt

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CachePattern         = "%s/.%s.cache"
	DefaultCacheNewLabel = "Type new value?"
	DefaultCacheQty      = 5
	EmptyItems           = "no items were provided. Please insert a list of items for the input %s in the config.json file of your formula"
	TypeSuffix           = "__type"
)

Variables

This section is empty.

Functions

func NewInputManager

func NewInputManager(
	cred credential.Resolver,
	inList prompt.InputList,
	inText prompt.InputText,
	inTextValidator prompt.InputTextValidator,
	inDefValue input.InputTextDefault,
	inBool prompt.InputBool,
	inPass prompt.InputPassword,
	inMultiselect prompt.InputMultiselect,
	inPath prompt.InputPath,
) formula.InputRunner

Types

type InputManager

func (InputManager) Inputs

func (in InputManager) Inputs(cmd *exec.Cmd, setup formula.Setup, f *pflag.FlagSet) error

type SurveyDefault

type SurveyDefault struct{}

func NewSurveyDefault

func NewSurveyDefault() SurveyDefault

func (SurveyDefault) Text

func (SurveyDefault) Text(i formula.Input) (string, error)

Jump to

Keyboard shortcuts

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