survey

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptUserForValues

func PromptUserForValues(in io.Reader, out io.Writer, variables []recipe.Variable, existingValues recipe.VariableValues) (recipe.VariableValues, error)

PromptUserForValues prompts the user for values for the given variables

Types

type SurveyModel

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

func NewModel

func NewModel(variables []recipe.Variable, existingValues recipe.VariableValues) SurveyModel

func (SurveyModel) Init

func (m SurveyModel) Init() tea.Cmd

func (SurveyModel) Update

func (m SurveyModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SurveyModel) Values

func (m SurveyModel) Values() recipe.VariableValues

func (SurveyModel) View

func (m SurveyModel) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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