repostable

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package repostable is a Model that renders git repo states in a table. Providing functionality like filterning

Index

Constants

View Source
const (
	RepoW        = 40
	BranchW      = 40
	RemoteStateW = 20 //(uncommited files count + aheadW + behindW + 4 space)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model added in v1.3.6

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

func New added in v1.3.6

func New(
	theme theme.Theme,
	report report.ScanReport,
	width int,
	height int,
) Model

func (*Model) Blur added in v1.3.6

func (m *Model) Blur()

Blur removes focus from table

func (*Model) Cursor added in v1.3.6

func (m *Model) Cursor() int

Cursor returns the index of the selected row.

func (*Model) Filter added in v1.3.6

func (m *Model) Filter(query string)

Filter filters repo states based on repo name. Then update table based on filtered repos

func (*Model) Focus added in v1.3.6

func (m *Model) Focus()

Focus bring focus to table

func (*Model) GetCurrentRepoState added in v1.3.6

func (m *Model) GetCurrentRepoState() *report.RepoState

func (*Model) GetRepoStateAt added in v1.3.6

func (m *Model) GetRepoStateAt(index int) *report.RepoState

func (Model) Init added in v1.3.6

func (rt Model) Init() tea.Cmd

func (*Model) ReposCount added in v1.3.6

func (rt *Model) ReposCount() int

func (*Model) SetReport added in v1.3.6

func (m *Model) SetReport(report report.ScanReport)

func (Model) Update added in v1.3.6

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

func (*Model) UpdateRepoState added in v1.3.6

func (m *Model) UpdateRepoState(index int, newState report.RepoState)

func (*Model) UpdateWindowSize added in v1.3.6

func (m *Model) UpdateWindowSize(width int, height int) Model

func (Model) View added in v1.3.6

func (m Model) View() string

Jump to

Keyboard shortcuts

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