tui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Cfg)

Types

type FlowItem

type FlowItem string

func (FlowItem) FilterValue

func (i FlowItem) FilterValue() string

type FlowListItemDelegate

type FlowListItemDelegate struct{}

func (FlowListItemDelegate) Height

func (self FlowListItemDelegate) Height() int

func (FlowListItemDelegate) Render

func (self FlowListItemDelegate) Render(writer io.Writer, model list.Model, index int, listItem list.Item)

func (FlowListItemDelegate) Spacing

func (self FlowListItemDelegate) Spacing() int

func (FlowListItemDelegate) Update

func (self FlowListItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type FlowsExplorerModel

type FlowsExplorerModel struct {
	List list.Model
}

type Layout

type Layout struct {
	FlowsExplorer Rect
	StepsExplorer Rect
	StepView      Rect
}

type Model

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

Model represents the application state

func NewModel

func NewModel(cfg *config.Cfg) Model

func (Model) Init

func (model Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

func (model Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (model Model) View() string

type Rect

type Rect struct {
	X, Y, W, H int
}

type StepItem

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

func (StepItem) Description

func (i StepItem) Description() string

func (StepItem) FilterValue

func (i StepItem) FilterValue() string

func (StepItem) Title

func (i StepItem) Title() string

type StepListItemDelegate

type StepListItemDelegate struct{}

func (StepListItemDelegate) Height

func (self StepListItemDelegate) Height() int

func (StepListItemDelegate) Render

func (self StepListItemDelegate) Render(writer io.Writer, model list.Model, index int, listItem list.Item)

func (StepListItemDelegate) Spacing

func (self StepListItemDelegate) Spacing() int

type StepViewModel

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

type StepsExplorerModel

type StepsExplorerModel struct {
	List list.Model
	// contains filtered or unexported fields
}

type View

type View uint8
const (
	ViewFlowsExplorer View = iota
	ViewStepsExplorer
	ViewStepView
)

Jump to

Keyboard shortcuts

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