tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tui exposes the interactive terminal UI used by the vminfo CLI.

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 vminfo interactive terminal UI.

Types

type Options

type Options struct {
	// Stdout receives the rendered terminal UI. Defaults to os.Stdout.
	Stdout io.Writer
	// Stdin provides keyboard input. Defaults to os.Stdin.
	Stdin io.Reader
	// Lang selects the UI language. Examples: "en", "zh", "zh-CN".
	// Empty means auto-detect from VMINFO_LANG, LC_ALL, or LANG.
	Lang string
}

Options configures the interactive terminal UI.

Jump to

Keyboard shortcuts

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