prompt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(inputs []*survey.Question, response interface{}) error

func AskOne

func AskOne(input *survey.Question, response interface{}) error

func BoolInput

func BoolInput(name string, message string, help string, required bool) *survey.Question

func CaptureInputViaEditor added in v0.3.0

func CaptureInputViaEditor(contents, pattern string) (result string, err error)

CaptureInputViaEditor is the high level function to use in this package in order to capture input from an editor.

The arguments have been tailored for our use of strings mostly in the rest of the CLI even though internally we're using []byte.

func Confirm

func Confirm(message string) bool

func SelectInput

func SelectInput(name string, message string, help string, options []string, required bool) *survey.Question

func TextInput

func TextInput(name string, message string, help string, required bool) *survey.Question

func TextInputDefault

func TextInputDefault(name string, message string, help string, value string, required bool) *survey.Question

Types

This section is empty.

Jump to

Keyboard shortcuts

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