Documentation
¶
Overview ¶
Package ui centralizes terminal presentation: lipgloss styles, status messages, and the styled DNS plan and record renderers.
Index ¶
- func CheckLine(label string, width int, ok bool, reason string) string
- func Detail(s string) string
- func Heading(format string, a ...any) string
- func Info(format string, a ...any) string
- func OK(format string, a ...any) string
- func RecordLegend(rows []RecordRow) string
- func RenderPlan(p reconcile.Plan) string
- func RenderRecords(rows []RecordRow) string
- func Warn(format string, a ...any) string
- func WithSpinner(ctx context.Context, msg string, fn func(context.Context) error) error
- type Mark
- type RecordRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detail ¶
Detail renders multi-line output (e.g. a remote command's logs) dimmed and indented so it reads as secondary context.
func RecordLegend ¶ added in v0.1.2
func RenderPlan ¶
RenderPlan renders a reconcile plan as a colored diff (+ create, ~ update, - delete, ! conflict).
func RenderRecords ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.