tui

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model represents the state of the TUI application.

func InitialModel

func InitialModel(ctx context.Context, analyzedBranches []types.AnalyzedBranch, dryRun bool) Model

InitialModel creates the starting model for the TUI, separating branches into three groups.

func (Model) GetBranchesToDelete

func (m Model) GetBranchesToDelete() []gitcmd.BranchToDelete

GetBranchesToDelete builds the list of actions based on current selections using original indices.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is the first command that runs when the Bubble Tea program starts.

func (Model) Update

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

Update handles messages and updates the model accordingly.

func (Model) View

func (m Model) View() string

View renders the UI based on the model's state.

Jump to

Keyboard shortcuts

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