tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tui provides TUI components for the csvpp CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlainView

func PlainView(headers []*csvpp.ColumnHeader, records [][]*csvpp.Field) string

PlainView returns a plain text representation without TUI.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the TUI model for viewing CSV++ data.

func NewModel

func NewModel(headers []*csvpp.ColumnHeader, records [][]*csvpp.Field) Model

NewModel creates a new TUI model with the given data.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

type Styles

type Styles struct {
	Header       lipgloss.Style
	Cell         lipgloss.Style
	Selected     lipgloss.Style
	Help         lipgloss.Style
	Status       lipgloss.Style
	FilterPrompt lipgloss.Style
	FilterActive lipgloss.Style
}

Styles holds the styles for the TUI components.

func DefaultStyles

func DefaultStyles() Styles

DefaultStyles returns the default styles for the TUI.

Jump to

Keyboard shortcuts

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