ui

package
v0.0.10 Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(text string) string

Bold returns a bold-formatted string

func CheckMark

func CheckMark(message string)

CheckMark prints a check mark with a message

func CrossMark

func CrossMark(message string)

CrossMark prints a cross mark with a message

func Error

func Error(message string)

Error prints an error message

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 FatalError

func FatalError(err error)

FatalError logs an error object and exits with code 1

func Info

func Info(message string)

Info prints an info message

func InfoF

func InfoF(format string, args ...interface{})

InfoF prints a formatted info message

func Loading

func Loading(message string)

Loading prints a loading message

func NewLine

func NewLine()

NewLine prints a new line

func PrintCommand

func PrintCommand(command string)

PrintCommand prints a command to run

func PrintHeader

func PrintHeader(message string)

PrintHeader prints a header message

func PrintNextSteps

func PrintNextSteps()

PrintNextSteps prints next steps section

func PrintStatusLine

func PrintStatusLine(label, value string)

PrintStatusLine prints a status line with label and value

func PrintStep

func PrintStep(number int, message string)

PrintStep prints a numbered step

func PrintTable

func PrintTable(col1, col2 string)

PrintTable prints a simple table row

func Progress

func Progress(current, total int, message string)

Progress prints a progress indicator with current/total counts

func ProgressWithName

func ProgressWithName(current, total int, itemName, action string)

ProgressWithName prints a progress indicator for a named item

func Rocket

func Rocket(message string)

Rocket prints a message with a rocket emoji

func Section

func Section(title string)

Section prints a section header

func ShowPortsFromConfig

func ShowPortsFromConfig(hostname string, instance int, ports map[string]int, portConfigs map[string]config.EnvVarConfig)

ShowPortsFromConfig displays port mapping from configuration

func Success

func Success(message string)

Success prints a success message

func SuccessF

func SuccessF(format string, args ...interface{})

SuccessF prints a formatted success message

func Warning

func Warning(message string)

Warning prints a warning message

func WarningF

func WarningF(format string, args ...interface{})

WarningF prints a formatted warning message but continues execution

Types

This section is empty.

Jump to

Keyboard shortcuts

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