render

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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