prompt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SelectQuestion

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

SelectQuestion is a question that asks the user to select an option from a list.

func NewSelectQuestion

func NewSelectQuestion() *SelectQuestion

func (*SelectQuestion) Ask

func (q *SelectQuestion) Ask(question string, options []string) (string, error)

Ask asks a question with a list of options.

func (*SelectQuestion) EnableFilter

func (q *SelectQuestion) EnableFilter(enable bool)

EnableFilter enables or disables the filter feature of the select question.

Jump to

Keyboard shortcuts

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