ux

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Title = lipgloss.NewStyle().
			Bold(true).
			Foreground(lipgloss.AdaptiveColor{Light: "#CC3333", Dark: "#FF7F7F"})

	Info = lipgloss.NewStyle().
			Foreground(lipgloss.AdaptiveColor{Light: "#555555", Dark: "#AAAAAA"})

	Success = lipgloss.NewStyle().
			Foreground(lipgloss.AdaptiveColor{Light: "#2D7A2D", Dark: "#B8E6B8"})

	Warn = lipgloss.NewStyle().
			Foreground(lipgloss.AdaptiveColor{Light: "#CC7700", Dark: "#FFAA33"})

	Error = lipgloss.NewStyle().
			Foreground(lipgloss.AdaptiveColor{Light: "#CC2222", Dark: "#FF6B6B"})

	Path = lipgloss.NewStyle().
			Foreground(lipgloss.AdaptiveColor{Light: "#0066CC", Dark: "#66AAFF"})

	Counter = lipgloss.NewStyle().
			Bold(true)

	Summary = lipgloss.NewStyle().
			Bold(true)
)

Style tokens using AdaptiveColor for light/dark theme support.

Functions

func PrintDBConnected

func PrintDBConnected(driver string)

PrintDBConnected prints a database connection success message.

func PrintDryRun

func PrintDryRun(daoPath, poPath string)

PrintDryRun prints dry-run output showing planned paths.

func PrintError

func PrintError(title, msg string)

PrintError prints an error message with a red cross to stderr.

func PrintFailureDetail

func PrintFailureDetail(service, errorType, message string)

PrintFailureDetail prints a single failure detail line.

func PrintGenerated

func PrintGenerated(serviceName, daoPath, poPath string)

PrintGenerated prints a generation success message.

func PrintInfo

func PrintInfo(msg string)

PrintInfo prints an informational message.

func PrintProgress

func PrintProgress(current, total int, msg string)

PrintProgress prints a progress indicator in the format current/total msg.

func PrintSuccess

func PrintSuccess(title, msg string)

PrintSuccess prints a success message with a green checkmark.

func PrintSummary

func PrintSummary(success, failed int)

PrintSummary prints a parseable summary line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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