prompt

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectInputs

func CollectInputs(a *actions.Action, existing map[string]string) (map[string]string, error)

CollectInputs collects all required inputs for an action.

func Confirm

func Confirm(message string) (bool, error)

Confirm asks a yes/no question (default: no).

func ConfirmYes

func ConfirmYes(message string) (bool, error)

ConfirmYes asks a yes/no question (default: yes).

func MultiSelect

func MultiSelect(label string, options []actions.SelectOption) ([]string, error)

MultiSelect asks user to select multiple options.

func Select

func Select(label string, options []actions.SelectOption) (string, error)

Select asks user to choose from a list.

func String

func String(label, defaultVal string) (string, error)

String asks for a string value with line editing support.

Types

This section is empty.

Jump to

Keyboard shortcuts

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