Documentation ¶
Index ¶
- func DeleteWithConfirmation(ask Asker, itemType string, itemName string, itemID string, ...) error
- func MakeItemMapAndOptions[T any](items []T, getKey func(item T) string) (map[string]T, []string)
- func MultiSelectMap[T any](ask Asker, message string, items []T, getKey func(item T) string, ...) ([]T, error)
- func SelectMap[T any](ask Asker, message string, items []T, getKey func(item T) string) (T, error)
- type AskProvider
- type Asker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithConfirmation ¶ added in v0.2.0
func MakeItemMapAndOptions ¶ added in v0.2.1
func MultiSelectMap ¶ added in v0.2.0
Types ¶
type AskProvider ¶ added in v0.2.0
type AskProvider interface { IsInteractive() bool DisableInteractive() Ask(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error }
func NewAskProvider ¶ added in v0.2.0
func NewAskProvider(asker Asker) AskProvider
Click to show internal directories.
Click to hide internal directories.