Documentation
¶
Index ¶
- func ChangeTypeBadge(changeType string) string
- func Dimmed(text string) string
- func ErrorMessage(message string) string
- func Header(icon, title string) string
- func HelpFunc(cmd *cobra.Command, args []string)
- func InfoMessage(message string) string
- func KeyValue(key, value string) string
- func List(items []string) string
- func NewSpinner(message string) *spinner.Spinner
- func RenderPreview(changes []PackageChange) string
- func RenderVersionDiff(oldVer, newVer semver.Version) string
- func Section(title string) string
- func SuccessMessage(message string) string
- func Table(headers []string, rows [][]string) string
- func VersionArrow(old, newVer string) string
- func WarningMessage(message string) string
- type PackageChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeTypeBadge ¶ added in v0.4.0
ChangeTypeBadge returns a colorized change type string: major=red, minor=yellow, patch=green.
func ErrorMessage ¶
ErrorMessage returns a styled error message with X mark
func Header ¶ added in v0.4.0
Header returns a bold magenta header with an icon prefix. Unlike Section(), it has no underline or margins, making it suitable for command output headers.
func HelpFunc ¶ added in v0.4.0
HelpFunc is a custom help function for cobra commands. It renders styled, colorized help output using lipgloss.
func InfoMessage ¶
InfoMessage returns a styled info message with info symbol
func NewSpinner ¶
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 ¶
RenderVersionDiff renders a version diff with arrow
func SuccessMessage ¶
SuccessMessage returns a styled success message with check mark
func Table ¶ added in v0.4.0
Table renders a styled table with the given headers and rows. Returns a string that callers can print.
func VersionArrow ¶ added in v0.4.0
VersionArrow returns a styled "old -> new" string with red old, green new, and cyan arrow.
func WarningMessage ¶
WarningMessage returns a styled warning message with warning symbol