branch

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package branch provides the TUI for creating branches.

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 is the branch creation UI model.

func NewModel

func NewModel(branchType, branchName string) Model

NewModel creates a new branch model.

func (Model) Error

func (m Model) Error() error

Error returns any error that occurred.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model.

func (Model) IsSuccess

func (m Model) IsSuccess() bool

IsSuccess returns true if branch was created successfully.

func (Model) Update

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

Update handles messages.

func (Model) View

func (m Model) View() string

View renders the model.

type State

type State int

State represents the current state.

const (
	StateCreating State = iota
	StateSuccess
	StateFailed
)

Jump to

Keyboard shortcuts

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