tui

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaneActions    = "actions"
	PaneValidation = "validation"
)
View Source
const PaneField = "tui.pane"

Variables

This section is empty.

Functions

func ActionsLogger

func ActionsLogger() *logrus.Entry

ActionsLogger returns a logger whose output routes to the actions pane when TUI is active. When TUI is not active, returns a plain logger without the routing field.

func IsActive

func IsActive() bool

IsActive returns true when the TUI mode is active.

func RunTUI

func RunTUI() (*tea.Program, error)

RunTUI starts the TUI and returns a Program handle. The caller should run the exec loop in a goroutine, sending iterationMsg and execDoneMsg via program.Send(). The logrus hook is installed automatically. When the TUI exits, active is set to false and logrus output is restored.

func SendDone

func SendDone(p *tea.Program, err error)

SendDone signals the TUI that the exec loop has finished.

func SendIteration

func SendIteration(p *tea.Program, num int)

SendIteration sends an iteration update to the TUI program.

func ValidationLogger

func ValidationLogger() *logrus.Entry

ValidationLogger returns a logger whose output routes to the validation pane when TUI is active. When TUI is not active, returns a plain logger without the routing field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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