tui

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSearchTable

func RunSearchTable(spec SearchTable) error

Types

type SearchForm

type SearchForm struct {
	Title       string
	Description string
	SearchLabel string
	Search      string
	Limit       int
}

type SearchResult

type SearchResult struct {
	Search string
	Limit  int
	Page   int
}

type SearchTable

type SearchTable struct {
	Form         SearchForm
	Columns      []output.Column
	Fetch        func(SearchResult) (TableResult, error)
	OnSelect     func(map[string]any) error
	EmptyMessage string
}

type TableResult

type TableResult struct {
	Rows  []map[string]any
	Total int
	Page  int
}

Jump to

Keyboard shortcuts

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