ui

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PadOrTrim

func PadOrTrim(s string, width int) string

func RenderWorktreeSelector

func RenderWorktreeSelector(rows []WorktreeRow, cursor int, styles Styles) string

Types

type Styles

type Styles struct {
	Header           func(string) string
	Normal           func(string) string
	Selected         func(string) string
	Disabled         func(string) string
	DisabledSelected func(string) string
	Secondary        func(string) string
}

type WorktreeRow

type WorktreeRow struct {
	BranchLabel     string
	PRLabel         string
	PRURL           string
	CILabel         string
	ReviewLabel     string
	CommentsLabel   string
	UnresolvedLabel string
	PRStatusLabel   string
	Disabled        bool
}

Jump to

Keyboard shortcuts

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