questions

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintToTerm

func PrintToTerm(text ...interface{})

func PrintfToTerm

func PrintfToTerm(msg string, format ...interface{})

func PrintlnToTerm

func PrintlnToTerm(text ...interface{})

func Prompt

func Prompt(text, def string) (string, error)

func PromptBool

func PromptBool(text string, def bool) (bool, error)

func PromptOptions

func PromptOptions(text string, def int, options ...string) (int, error)

func PromptPassword added in v0.2.0

func PromptPassword(text, def string) (string, error)

Types

type Questions

type Questions struct {
	// contains filtered or unexported fields
}

func NewQuestions

func NewQuestions(qs []v1.Question, answers map[string]string, forcePrompt bool) (*Questions, error)

func (*Questions) Ask

func (qs *Questions) Ask() (map[string]string, error)

Jump to

Keyboard shortcuts

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