commands

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package commands provides CLI command-specific UI components.

Index

Constants

This section is empty.

Variables

View Source
var (
	TitleStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("62")).
				Bold(true)

	SuccessStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("46"))

	ErrorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("196"))

	WarningStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("226"))

	InfoStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("75"))
)

Functions

func ColorInfo

func ColorInfo(text string) string

ColorInfo returns text styled with the info color.

func ColorSuccess

func ColorSuccess(text string) string

ColorSuccess returns text styled with the success color.

func ColorWarning

func ColorWarning(text string) string

ColorWarning returns text styled with the warning color.

func PrintError

func PrintError(msg string)

PrintError prints an error message with red [ERROR] prefix.

func PrintInfo

func PrintInfo(msg string)

PrintInfo prints an informational message with blue [INFO] prefix.

func PrintSuccess

func PrintSuccess(msg string)

PrintSuccess prints a success message with green [SUCCESS] prefix.

func PrintWarning

func PrintWarning(msg string)

PrintWarning prints a warning message with yellow [WARNING] prefix.

func PromptYesNo

func PromptYesNo(prompt string) bool

PromptYesNo displays a prompt and returns true if user responds y/yes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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