Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SearchFunc ¶
SearchFunc is a function for searching and matching items in select.
type UI ¶
type UI interface { ui.UI Confrim(prompt string, Default bool) (bool, error) Ask(prompt, Default string, f ValidateFunc) (string, error) AskSecret(prompt string, confirm bool, f ValidateFunc) (string, error) Select(prompt string, size int, items []Item, f SearchFunc) (Item, error) }
UI is the interface for interacting with users in command-line applications.
func NewInteractive ¶
NewInteractive creates a new interactive user interface. This is a concurrent-safe UI and can be used across multiple Go routines.
type ValidateFunc ¶
ValidateFunc is a function for validating user inputs.
Click to show internal directories.
Click to hide internal directories.