tui

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package tui provides the terminal UI for hrd, built on tview. It manages repo list display, command input, output streaming, group filtering, and persistent state (history, selections) across sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) error

Run starts the Bubble Tea event loop and blocks until the user quits.

Types

type Options

type Options struct {
	ConfigPath string
	Group      string
	Repos      []string
	StatePath  string
}

Options configures the TUI entry point.

type PersistentState

type PersistentState struct {
	Version   int      `json:"version"`
	History   []string `json:"history"`
	LastRepos []string `json:"lastRepos"`
	LastGroup string   `json:"lastGroup"`
}

PersistentState holds TUI session state saved between runs.

Jump to

Keyboard shortcuts

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