tui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgressStatusPending = "pending"
	ProgressStatusRunning = "running"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Progress  ProgressState
	Execution apply.ExecutionResult
	Err       error
	// contains filtered or unexported fields
}

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type PipelineDoneMsg

type PipelineDoneMsg struct {
	Result apply.ExecutionResult
}

type ProgressItem

type ProgressItem struct {
	Label  string
	Status string
}

type ProgressState

type ProgressState struct {
	Items   []ProgressItem
	Current int
	Logs    []string
}

func NewProgressState

func NewProgressState(labels []string) ProgressState

func ProgressFromExecution

func ProgressFromExecution(result apply.ExecutionResult) ProgressState

func (*ProgressState) AppendLog

func (p *ProgressState) AppendLog(format string, args ...any)

func (*ProgressState) Mark

func (p *ProgressState) Mark(index int, status string)

func (ProgressState) Render

func (p ProgressState) Render() string

func (*ProgressState) Start

func (p *ProgressState) Start(index int)

type StepProgressMsg

type StepProgressMsg struct {
	StepID string
	Status apply.StepStatus
	Err    error
}

type TickMsg

type TickMsg time.Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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