survey

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asker added in v0.6.1

type Asker interface {
	Ask(questions []*survey.Question, answers any, opts ...survey.AskOpt) error
	AskOne(p survey.Prompt, response any, opts ...survey.AskOpt) error
}

Asker defines the interface for asking survey questions.

type RealAsker added in v0.6.1

type RealAsker struct{}

RealAsker is an implementation of SurveyAsker that uses the actual survey library.

func (*RealAsker) Ask added in v0.6.1

func (r *RealAsker) Ask(questions []*survey.Question, answers any, opts ...survey.AskOpt) error

Ask asks survey questions using the actual survey library.

func (*RealAsker) AskOne added in v0.6.1

func (r *RealAsker) AskOne(prompt survey.Prompt, response any, opts ...survey.AskOpt) error

AskOne asks a single survey question using the actual survey library.

Jump to

Keyboard shortcuts

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