Documentation
¶
Overview ¶
Package ui provides colored terminal output utilities for the worktree manager CLI. It includes functions for printing success, error, warning, and informational messages with consistent formatting and emoji indicators.
Index ¶
- func Bold(text string) string
- func CheckMark(message string)
- func CrossMark(message string)
- func Error(message string)
- func ErrorF(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func FatalError(err error)
- func Info(message string)
- func InfoF(format string, args ...interface{})
- func Loading(message string)
- func NewLine()
- func PrintCommand(command string)
- func PrintHeader(message string)
- func PrintNextSteps()
- func PrintStatusLine(label, value string)
- func PrintStep(number int, message string)
- func PrintTable(col1, col2 string)
- func Progress(current, total int, message string)
- func ProgressWithName(current, total int, itemName, action string)
- func Rocket(message string)
- func Section(title string)
- func ShowPortsFromConfig(hostname string, instance int, ports map[string]int, ...)
- func Success(message string)
- func SuccessF(format string, args ...interface{})
- func Warning(message string)
- func WarningF(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorF ¶
func ErrorF(format string, args ...interface{})
ErrorF prints a formatted error message but does not exit
func Fatal ¶
func Fatal(format string, args ...interface{})
Fatal logs an error message and exits with code 1
func PrintStatusLine ¶
func PrintStatusLine(label, value string)
PrintStatusLine prints a status line with label and value
func ProgressWithName ¶
ProgressWithName prints a progress indicator for a named item
func ShowPortsFromConfig ¶
func ShowPortsFromConfig(hostname string, instance int, ports map[string]int, portConfigs map[string]config.EnvVarConfig)
ShowPortsFromConfig displays port mapping from configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.