Documentation
¶
Overview ¶
Package tui provides an offline contribution workbench over 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 WithActionProvider ¶ added in v0.14.0
func WithActionProvider(provider tuicontract.ActionProvider) Option
WithActionProvider registers typed contextual application operations. Loading, navigation, filtering, and detail inspection remain local.
func WithBriefProvider ¶ added in v0.14.0
func WithBriefProvider(provider tuicontract.BriefProvider) Option
WithBriefProvider registers the offline research-brief capability.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner implements the product-owned TUI runner contract.
func NewRunner ¶
func NewRunner( reader tuicontract.Reader, actions tuicontract.ActionProvider, briefs tuicontract.BriefProvider, input io.Reader, output io.Writer, ) *Runner