tui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(message string) bool

Confirm shows a yes/no confirmation prompt. Returns true if the user confirmed.

func Input

func Input(prompt, placeholder string) (string, bool)

Input shows a text input prompt and returns the entered value. Returns empty string and false if the user cancelled.

Types

type SelectItem

type SelectItem struct {
	ID    int
	Label string
}

SelectItem represents a selectable item with an ID and label.

func Select

func Select(title string, items []SelectItem) *SelectItem

Select shows an interactive list and returns the selected item. Returns nil if the user cancelled.

func (SelectItem) FilterValue

func (i SelectItem) FilterValue() string

Jump to

Keyboard shortcuts

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