tui

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTTY = errors.New("no TTY available for interactive prompt")
View Source
var ErrPromptCancelled = errors.New("prompt cancelled")

Functions

func NewGroupedModel added in v0.7.10

func NewGroupedModel(items []ParallelItem, cancel context.CancelFunc) tea.Model

func NewTabsModel added in v0.7.10

func NewTabsModel(items []ParallelItem, cancel context.CancelFunc) tea.Model

func PickTask added in v0.1.2

func PickTask(ctx context.Context, tasks babfile.TaskMap) (*babfile.Task, error)

func RunParallel added in v0.7.4

func RunParallel(model tea.Model) (*tea.Program, error)

func RunPrompt added in v0.6.0

func RunPrompt(ctx context.Context, p babfile.PromptRun, message string) (string, error)

Types

type AllDoneMsg added in v0.7.4

type AllDoneMsg struct{}

type ItemClearChildrenMsg added in v0.7.9

type ItemClearChildrenMsg struct {
	Key string
}

type ItemDoneMsg added in v0.7.4

type ItemDoneMsg struct {
	Key string
	Err error
}

type ItemOutputMsg added in v0.7.4

type ItemOutputMsg struct {
	Key  string
	Line string
}

type ItemRegisterMsg added in v0.7.9

type ItemRegisterMsg struct {
	Key    string
	Parent string
	Label  string
	Color  color.Color
}

type ItemStartMsg added in v0.7.9

type ItemStartMsg struct {
	Key string
}

type ParallelItem added in v0.7.4

type ParallelItem struct {
	Label string
	Color color.Color
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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