ui

package
v0.0.0-...-305ff81 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunUI

func RunUI(p patcher, u docUpdater, ge gitExecer, fs fileStager) error

Types

type Event

type Event int
const (
	UnknownEvent Event = iota
	ToggleStageEvent
	ToggleDiffEvent
	StartCommitEvent
)

type StateVariant

type StateVariant int
const (
	ViewUnstagedLines StateVariant = iota
	ViewUnstagedFiles
	ViewStagedLines
	ViewStagedFiles
	Committing
	Error
)

func (StateVariant) Model

func (sv StateVariant) Model(v view) tea.Model

func (StateVariant) Next

func (sv StateVariant) Next(event Event) StateVariant

func (StateVariant) OnEnter

func (sv StateVariant) OnEnter(v view) tea.Cmd

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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