tui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMenuList

func CreateMenuList(registry []app.CommandDef, def *app.CommandDef) list.Model

CreateMenuList creates a list model for a parent command definition

func NewFormModel

func NewFormModel(def *app.CommandDef) *formModel

NewFormModel creates a new form model from a command definition

func NewLoadingResultsModel

func NewLoadingResultsModel(title string) *resultsModel

NewLoadingResultsModel creates a new results display model in loading state

func NewResultsModel

func NewResultsModel(title, content string) *resultsModel

NewResultsModel creates a new results display model

func Run

func Run(ctx context.Context, registry []app.CommandDef, startPath string) error

Run starts the TUI application

Types

type CommandExecutor

type CommandExecutor struct {
	// contains filtered or unexported fields
}

CommandExecutor executes CLI commands from TUI

func NewCommandExecutor

func NewCommandExecutor(ctx context.Context) *CommandExecutor

NewCommandExecutor creates a new command executor

func (*CommandExecutor) ExecuteCommand

func (e *CommandExecutor) ExecuteCommand(def *app.CommandDef, flags map[string]any) (output string, data any, err error)

ExecuteCommand executes an app handler

Jump to

Keyboard shortcuts

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