ui

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(message string)

Bold prints bold text

func ClearLines added in v0.6.0

func ClearLines(n int)

ClearLines clears n lines above cursor

func Command

func Command(cmd string) string

Command returns styled command text

func Error

func Error(message string)

Error prints an error message

func Header(command string)

Header prints a styled command header (uppercase cyan)

func Highlight

func Highlight(text string) string

Highlight returns highlighted text

func Info

func Info(message string)

Info prints an info message with arrow symbol (muted text)

func KeyValue

func KeyValue(key, value string)

KeyValue prints a key-value pair

func Muted

func Muted(message string)

Muted prints muted text

func Newline

func Newline()

Newline prints an empty line

func NextSteps

func NextSteps(steps []string)

NextSteps prints formatted next steps

func Spinner added in v0.4.0

func Spinner(message string, action func() error) error

Spinner shows a single dot while action runs, then clears the line

func Step

func Step(message string)

Step prints a muted step message (indented)

func Success

func Success(message string)

Success prints a success message with checkmark

func Task added in v0.4.3

func Task(stepMsg, successMsg string, action func() error) error

Task runs an action with step message, then shows success/error

func TreeItem added in v0.6.0

func TreeItem(prefix, label, status string, done bool)

TreeItem prints a tree-style item with status prefix: "├─" for middle items, "└─" for last item

func TreeItemSkipped added in v0.6.0

func TreeItemSkipped(prefix, label, reason string)

TreeItemSkipped prints a skipped tree item

func Warning

func Warning(message string)

Warning prints a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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