tui

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tui provides a Terminal User Interface using BubbleTea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run starts the TUI application.

Types

type CommandEntry

type CommandEntry struct {
	Command      string
	OriginalSize int
	Compressed   int
	Saved        int
	Timestamp    time.Time
}

CommandEntry represents a command in history.

type Model

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

Model represents the TUI application state.

func NewModel

func NewModel() Model

NewModel creates a new TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the TUI.

func (Model) Update

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

Update handles messages and updates state.

func (Model) View

func (m Model) View() string

View renders the TUI.

Jump to

Keyboard shortcuts

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