push

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package push provides the TUI for pushing 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 push UI model.

func NewModel

func NewModel() Model

NewModel creates a new push 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 push was successful.

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 (
	StatePushing State = iota
	StateSuccess
	StateFailed
)

Jump to

Keyboard shortcuts

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