Documentation
¶
Index ¶
- type Renderer
- func (r *Renderer) InputMenu(ctx context.Context, title string, validateFunc func(string) error) (string, error)
- func (r *Renderer) Logo()
- func (r *Renderer) SelectionMenu(ctx context.Context, title string, items []string) (string, error)
- func (r *Renderer) TextMenu(ctx context.Context, title string) (string, error)
- func (r *Renderer) WithSpinner(title string, fn func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer type is implementation of renderer that using prompts.
func NewRenderer ¶
NewRenderer creates Renderer object.
func (*Renderer) InputMenu ¶
func (r *Renderer) InputMenu(ctx context.Context, title string, validateFunc func(string) error) (string, error)
InputMenu function just display input menu.
func (*Renderer) SelectionMenu ¶
SelectionMenu function just display selection menu.
func (*Renderer) WithSpinner ¶
WithSpinner starts spinner while function is running.
Click to show internal directories.
Click to hide internal directories.