tui

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tui provides the interactive terminal UI for the inGitDB CLI, launched when the tool is invoked without a subcommand inside an inGitDB repository.

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 root bubbletea model that owns the current screen and manages screen transitions.

func New

func New(
	dbPath string,
	def *ingitdb.Definition,
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	width, height int,
) Model

New creates the root model. width/height are the initial terminal dimensions.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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