prompts

package
v0.0.0-...-77fb658 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SELECTED_ALL_ITEMS = "I'm done selecting items"
)

Variables

This section is empty.

Functions

func MultiSelectPrompt

func MultiSelectPrompt(params SelectPromptParams, mustSelectItems bool) ([]string, error)

MultiSelectPrompt prompts the user with a selection of items and returns the strings representing the item they selected

func SelectPrompt

func SelectPrompt(params SelectPromptParams) (string, error)

SelectPrompt prompts the user with a selection of items and returns the string representing the item they selected

Types

type SelectPromptParams

type SelectPromptParams struct {
	Label string
	Items []string
}

Jump to

Keyboard shortcuts

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