cli

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func PrintBadge

func PrintBadge(text string, clr *color.Color)

PrintBadge prints a colored badge/tag

func PrintCount

func PrintCount(count int, singular, plural string) string

PrintCount prints a count with proper formatting

func PrintEmptyState

func PrintEmptyState(msg string)

PrintEmptyState prints a message when there's no data to show

func PrintError

func PrintError(msg string)

PrintError prints an error message to stderr

func PrintInfo

func PrintInfo(msg string)

PrintInfo prints an informational message

func PrintLabelValue

func PrintLabelValue(label, value string)

PrintLabelValue prints a label-value pair with proper formatting

func PrintLabelValueWithColor

func PrintLabelValueWithColor(label, value string, valueClr *color.Color)

PrintLabelValueWithColor prints a label-value pair with a custom value color

func PrintList

func PrintList(items []string, indent int)

PrintList prints a list of items with bullet points

func PrintNumberedList

func PrintNumberedList(items []string, indent int)

PrintNumberedList prints a numbered list

func PrintSection

func PrintSection(title string)

PrintSection prints a section header

func PrintSeparator

func PrintSeparator()

PrintSeparator prints a visual separator line

func PrintSubsection

func PrintSubsection(title string)

PrintSubsection prints a subsection header

func PrintSuccess

func PrintSuccess(msg string)

PrintSuccess prints a success message with a checkmark

func PrintTable

func PrintTable(headers []string, rows [][]string)

PrintTable prints a simple two-column table

func PrintWarning

func PrintWarning(msg string)

PrintWarning prints a warning message with a warning symbol

func SetVersion

func SetVersion(v string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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