questions

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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)

Types

type Questions

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

func NewQuestions

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

func (*Questions) Ask

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

Source Files

  • questions.go

Jump to

Keyboard shortcuts

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