ui

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

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

UI encapsulates display state and configuration

func New

func New(prs []types.PR, json bool) *UI

New creates a new UI instance Automatically detects if PRs span multiple repos

func NewFromGroups

func NewFromGroups(groups map[string][]types.PR, json bool) *UI

NewFromGroups creates a new UI instance from grouped PRs

func (*UI) DisplayGroups

func (u *UI) DisplayGroups(groups map[string][]types.PR) error

DisplayGroups prints PRs grouped by package@version (JSON or hierarchical format)

func (*UI) DisplayList

func (u *UI) DisplayList(prs []types.PR) error

DisplayList prints PRs in a flat list format (JSON or table-like)

func (*UI) PrintAction

func (u *UI) PrintAction(action string, pr types.PR, details ...string)

PrintAction prints a standardized action message for a PR Examples:

  • approve #123
  • owner/repo approve #123
  • merge #123 via dependabot
  • owner/repo skipped #123: CI checks not passing

func (*UI) PrintError

func (u *UI) PrintError(action string, pr types.PR, err error)

PrintError prints a standardized error message for a PR action

Jump to

Keyboard shortcuts

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