prompt

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(prompt Prompt) survey.Prompt

func GetValue

func GetValue(prompt survey.Prompt, typ string) (any, error)

Types

type Prompt

type Prompt struct {
	Type    string   `json:"type"`
	Message string   `json:"message,omitempty"`
	Help    string   `json:"help,omitempty"`
	Options []string `json:"options,omitempty"`
}

Jump to

Keyboard shortcuts

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