tui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config) error

Types

type AnimState

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

type Model

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

func NewModel

func NewModel(cfg *config.Config) *Model

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 Phase

type Phase int
const (
	PhaseIdle Phase = iota
	PhaseScanning
	PhaseLoading
	PhaseFetching
)

type SortMode

type SortMode int
const (
	SortAlpha SortMode = iota
	SortDiff
	SortChurn
)

type SummaryData

type SummaryData struct {
	TotalRepos    int
	DirtyRepos    int
	AheadRepos    int
	BehindRepos   int
	InSyncRepos   int
	ConflictRepos int

	TotalStaged    int
	TotalModified  int
	TotalUntracked int

	TotalAdded   int
	TotalDeleted int
	TotalNet     int

	DailyCommits [7]int
}

type TableRow

type TableRow struct {
	Repo *model.Repository
}

type Toast

type Toast struct {
	ID        int
	Message   string
	Level     ToastLevel
	CreatedAt time.Time
}

type ToastLevel

type ToastLevel int
const (
	ToastInfo ToastLevel = iota
	ToastSuccess
	ToastError
)

type ViewFilter

type ViewFilter int
const (
	ViewAll ViewFilter = iota
	ViewDirty
	ViewUnpushed
	ViewConflicts
)

Jump to

Keyboard shortcuts

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