tui

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchModel

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

SearchModel is the Bubble Tea model for the search TUI.

func NewSearchModel

func NewSearchModel(commands []db.Command, printOnly bool) SearchModel

NewSearchModel creates a search model pre-loaded with commands.

func (SearchModel) Init

func (m SearchModel) Init() tea.Cmd

func (SearchModel) Selected

func (m SearchModel) Selected() string

Selected returns the command the user picked (or "" if cancelled).

func (SearchModel) Update

func (m SearchModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SearchModel) View

func (m SearchModel) View() string

type WorkflowsModel

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

WorkflowsModel is the Bubble Tea model for browsing workflows.

func NewWorkflowsModel

func NewWorkflowsModel(workflows []db.Workflow) WorkflowsModel

NewWorkflowsModel creates a workflow browser model.

func (WorkflowsModel) Init

func (m WorkflowsModel) Init() tea.Cmd

func (WorkflowsModel) Selected

func (m WorkflowsModel) Selected() *db.Workflow

Selected returns the workflow the user chose (or nil if cancelled).

func (WorkflowsModel) Update

func (m WorkflowsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (WorkflowsModel) View

func (m WorkflowsModel) View() string

Jump to

Keyboard shortcuts

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