ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMessage

func ErrorMessage(message string) string

ErrorMessage returns a styled error message with X mark

func InfoMessage

func InfoMessage(message string) string

InfoMessage returns a styled info message with info symbol

func KeyValue

func KeyValue(key, value string) string

KeyValue returns a styled key-value pair

func List

func List(items []string) string

List returns a styled bulleted list

func NewSpinner

func NewSpinner(message string) *spinner.Spinner

NewSpinner creates a new progress spinner with the given message

func RenderPreview

func RenderPreview(changes []PackageChange) string

RenderPreview renders a preview of version changes

func RenderVersionDiff

func RenderVersionDiff(oldVer, newVer semver.Version) string

RenderVersionDiff renders a version diff with arrow

func Section

func Section(title string) string

Section returns a styled section header

func SuccessMessage

func SuccessMessage(message string) string

SuccessMessage returns a styled success message with check mark

func WarningMessage

func WarningMessage(message string) string

WarningMessage returns a styled warning message with warning symbol

Types

type PackageChange

type PackageChange struct {
	Name       string
	OldVersion semver.Version
	NewVersion semver.Version
	ChangeType string
	Changes    []string
}

PackageChange represents a version change for preview

Jump to

Keyboard shortcuts

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