tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts ...Option) error

Run starts the TUI and blocks until it exits.

Types

type Option

type Option func(*config)

func WithConfig added in v0.1.0

func WithConfig(cfg appconfig.Config) Option

WithConfig sets the loaded application config (the action command set). The enter-key menu lists its actions and runs the chosen one in the cursored repo.

func WithDir

func WithDir(dir string) Option

WithDir sets the root directory whose immediate subdirectories are scanned for git repositories.

func WithLogPath added in v0.1.0

func WithLogPath(path string) Option

WithLogPath sets the log file path shown in the help overlay. main.go owns the canonical path (xdg.StateFile), so it passes the same value it writes to.

func WithVersion added in v0.1.0

func WithVersion(version string) Option

WithVersion sets the version string shown in the header's right corner. Empty (e.g. a plain `go build` with no ldflags) leaves the model's "dev" default.

Jump to

Keyboard shortcuts

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