input

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation

func AskForConfirmation(question string) bool

func AskForConfirmationWithError

func AskForConfirmationWithError(question string) (bool, error)

func AskMultiSelect

func AskMultiSelect(question string, options []string) []string

func AskMultiSelectWithError

func AskMultiSelectWithError(question string, options []string) ([]string, error)

func AskSelect

func AskSelect(question string, options []string) string

func AskSelectMapKeys

func AskSelectMapKeys(question string, options map[string]string) string

func AskSelectWithError

func AskSelectWithError(question string, options []string) (string, error)

func AskSelectWithFilter

func AskSelectWithFilter(question string, options []string, filter string) string

func AskStringWithOptions

func AskStringWithOptions(question, def string, options Config) (string, error)

Types

type Config

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

Jump to

Keyboard shortcuts

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