status

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package status implements the compact repository status dashboard panel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitClient

type GitClient interface {
	Status(ctx context.Context) ([]git.FileStatus, error)
	CurrentBranch(ctx context.Context) (git.Branch, error)
	IsRepo(ctx context.Context) (bool, error)
}

type Panel

type Panel struct {
	panels.BasePanel
	// contains filtered or unexported fields
}

func New

func New(client GitClient, th *theme.Theme) *Panel

func (*Panel) Init

func (p *Panel) Init(ctx context.Context) tea.Cmd

func (*Panel) KeyBindings

func (p *Panel) KeyBindings() []panels.KeyBinding

func (*Panel) Update

func (p *Panel) Update(msg tea.Msg) (panels.Panel, tea.Cmd)

func (*Panel) View

func (p *Panel) View(width, height int) string

Jump to

Keyboard shortcuts

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