tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionMode

type ExecutionMode int
const (
	ModeApprove ExecutionMode = iota
	ModeMerge
	ModeApproveAndMerge
)

func (ExecutionMode) String

func (m ExecutionMode) String() string

type ExecutionResult

type ExecutionResult struct {
	PR      types.PR
	Action  string
	Success bool
	Error   error
}

type Model

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

func NewModel

func NewModel(prs []types.PR, mergeMethod, mergeMode string, requireChecks bool) *Model

func NewModelWithExecutor

func NewModelWithExecutor(prs []types.PR, mergeMethod, mergeMode string, requireChecks bool) *Model

NewModelWithExecutor creates a new model with execution capabilities

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 ViewState

type ViewState int
const (
	ViewList ViewState = iota
	ViewExecuting
	ViewComplete
	ViewHelp
)

Jump to

Keyboard shortcuts

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