Documentation
¶
Overview ¶
Package tui provides an offline terminal UI for browsing local corpus data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the TUI state.
func Run ¶
func Run(ctx context.Context, reader tuicontract.Reader, input io.Reader, output io.Writer) (Model, error)
Run starts the TUI program with the provided local reader and I/O.
It is suitable for later CLI wiring: the caller supplies a context, a Reader, and input/output streams. The TUI loads local data on start and never performs network I/O on its own.
type Option ¶
type Option func(*Model)
Option customizes a Model.
func WithActionHandler ¶
WithActionHandler registers an optional handler for explicit side-effecting actions such as refresh/hydration. The TUI never invokes it on initial load or search.
Click to show internal directories.
Click to hide internal directories.