Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer interface {
// Logo should display application logo.
Logo()
// SelectionMenu should display menu for selection.
SelectionMenu(ctx context.Context, title string, items []string) (string, error)
// InputMenu should display menu for input.
InputMenu(ctx context.Context, title string, validateFunc func(string) error) (string, error)
// TextMenu should display menu for text input.
TextMenu(ctx context.Context, title string) (string, error)
// WithSpinner should display spinner.
WithSpinner(title string, fn func())
}
Renderer interface implementation should render interactive menu.
Click to show internal directories.
Click to hide internal directories.