ui

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Title = lipgloss.NewStyle().
			Bold(true).
			Foreground(lipgloss.Color("99")).
			MarginBottom(1)

	Subtitle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("241"))

	ScoreHigh = lipgloss.NewStyle().
				Foreground(lipgloss.Color("42")).
				Bold(true)

	ScoreMedium = lipgloss.NewStyle().
				Foreground(lipgloss.Color("214"))

	ScoreLow = lipgloss.NewStyle().
				Foreground(lipgloss.Color("196"))

	Label = lipgloss.NewStyle().
			Foreground(lipgloss.Color("99")).
			Bold(true)

	Error = lipgloss.NewStyle().
			Foreground(lipgloss.Color("196")).
			Bold(true)

	Warning = lipgloss.NewStyle().
			Foreground(lipgloss.Color("214"))

	Success = lipgloss.NewStyle().
			Foreground(lipgloss.Color("42"))

	Muted = lipgloss.NewStyle().
			Foreground(lipgloss.Color("241"))

	TableHeader = lipgloss.NewStyle().
				Bold(true).
				Foreground(lipgloss.Color("99")).
				BorderBottom(true).
				BorderStyle(lipgloss.NormalBorder()).
				BorderForeground(lipgloss.Color("240"))

	TableCell = lipgloss.NewStyle().
				Padding(0, 1)
)

Functions

func RenderIssueResults

func RenderIssueResults(issues []ghapi.IssueResult, asJSON bool) error

func RenderRepoResults

func RenderRepoResults(repos []scoring.ScoredRepo, asJSON bool) error

func RunWithSpinner

func RunWithSpinner(message string, work func() (any, error)) (any, error)

func ScoreStyle

func ScoreStyle(score float64) lipgloss.Style

Types

type SpinnerModel

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

func NewSpinner

func NewSpinner(message string, work func() (any, error)) SpinnerModel

func (SpinnerModel) Init

func (m SpinnerModel) Init() tea.Cmd

func (SpinnerModel) Result

func (m SpinnerModel) Result() (any, error)

func (SpinnerModel) Update

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

func (SpinnerModel) View

func (m SpinnerModel) View() string

Jump to

Keyboard shortcuts

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