Documentation
¶
Index ¶
- Constants
- Variables
- func Bullet(msg string, icon string, color *color.Color)
- func BulletItem(msg string)
- func CheckItem(msg string)
- func CrossItem(msg string)
- func Error(message string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Header(title string)
- func Info(message string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Log(message string, args ...interface{})
- func PrintBranch(branchName string)
- func PrintCommand(cmd string)
- func PrintDemotion(branch, env string)
- func PrintEmptyLine()
- func PrintEnvironment(envName string, envInfo interface{})
- func PrintLockStatus(locked bool, lockedBy string, lockedAt time.Time)
- func PrintPromotion(branch, env string, isRelease bool)
- func PrintSeparator()
- func PrintSpinner(msg string)
- func PrintTimestamp(t time.Time)
- func Section(title string)
- func SetLoggingConfig(noColorFlag, quietFlag bool)
- func SubHeader(title string)
- func Success(message string, args ...interface{})
- func Successf(format string, args ...interface{})
- func Warn(message string, args ...interface{})
- func Warningf(format string, args ...interface{})
- type ProgressBar
Constants ¶
const ( IconSuccess = "✔" IconError = "✖" IconWarning = "⚠" IconInfo = "ℹ" IconProcessing = "◐" IconLock = "🔒" IconUnlock = "🔓" IconBranch = ">" // ASCII branch marker for feature branches IconEnvironment = "🏗" IconPromote = "↑" IconDemote = "↓" IconRelease = "🚀" IconMerge = "🔀" IconHook = "🪝" IconGit = "📦" IconStar = "★" IconSparkles = "**" IconGear = "⚙" IconCheck = "✔" IconCross = "✖" IconArrowRight = "→" IconArrowLeft = "←" IconBullet = "•" IconDiamond = "◆" IconSquare = "■" IconCircle = "●" )
ASCII icons and symbols
Variables ¶
var ( // Base colors ColorRed = color.New(color.FgRed) ColorGreen = color.New(color.FgGreen) ColorYellow = color.New(color.FgYellow) ColorBlue = color.New(color.FgBlue) ColorPurple = color.New(color.FgMagenta) ColorCyan = color.New(color.FgCyan) ColorWhite = color.New(color.FgWhite) ColorGray = color.New(color.FgHiBlack) ColorOrange = color.New(color.Bold, color.FgYellow) // Bright orange for warnings // Semantic colors ColorSuccess = ColorGreen ColorWarning = ColorOrange ColorError = ColorRed ColorInfo = ColorBlue // Accents and muted ColorAccent = ColorPurple ColorMuted = ColorGray // Secondary semantics for specific entities ColorBranch = ColorBlue ColorEnvironment = ColorCyan ColorProd = ColorRed )
Color objects for console output
Functions ¶
func Error ¶
func Error(message string, args ...interface{})
Error prints an error message in red (always shows regardless of quiet flag)
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf prints a formatted error message
func Header ¶
func Header(title string)
Header prints a simple accent-colored title (no box borders)
func Log ¶ added in v1.1.10
func Log(message string, args ...interface{})
Log prints a plain message without colors (for system/internal logging)
func PrintBranch ¶
func PrintBranch(branchName string)
PrintBranch prints branch information with icon
func PrintDemotion ¶
func PrintDemotion(branch, env string)
PrintDemotion prints demotion information with icons
func PrintEnvironment ¶
func PrintEnvironment(envName string, envInfo interface{})
PrintEnvironment prints environment information with appropriate styling
func PrintLockStatus ¶
PrintLockStatus prints lock status with appropriate icon and color
func PrintPromotion ¶
PrintPromotion prints promotion information with icons
func PrintSpinner ¶
func PrintSpinner(msg string)
PrintSpinner prints a simple spinner (for future async operations)
func SetLoggingConfig ¶ added in v1.1.10
func SetLoggingConfig(noColorFlag, quietFlag bool)
SetLoggingConfig configures global logging options
func Success ¶
func Success(message string, args ...interface{})
Success prints a success message in green
func Successf ¶
func Successf(format string, args ...interface{})
Successf prints a formatted success message
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar creates a simple progress bar (placeholder for future use)
func NewProgressBar ¶
func NewProgressBar(total, width int) *ProgressBar
func (*ProgressBar) Update ¶
func (p *ProgressBar) Update(current int)