ui

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 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(text string) string

Bold formats text as bold

func Command

func Command(cmd string) string

Command formats a command for display

func Confirm

func Confirm(message string, defaultValue bool) (bool, error)

Confirm prompts for yes/no confirmation

func DiffAdded

func DiffAdded(key string)

DiffAdded displays a variable that will be added

func DiffChanged

func DiffChanged(key string)

DiffChanged displays a variable that will be updated

func DiffKept

func DiffKept(key string)

DiffKept displays a variable that will be kept (local only)

func DiffRemoved

func DiffRemoved(key string)

DiffRemoved displays a variable that will be removed

func Dim

func Dim(text string) string

Dim formats text as dimmed

func Error

func Error(message string)

Error displays an error message

func File

func File(path string) string

File formats a file path for display

func Info

func Info(message string)

Info displays an info message

func Intro

func Intro(command string)

Intro displays the command intro banner

func IsInteractive

func IsInteractive() bool

IsInteractive returns true if running in an interactive terminal

func Link(url string) string

Link formats a URL for display

func Message

func Message(message string)

Message displays a plain message

func Outro

func Outro(message string)

Outro displays the command outro message

func Password

func Password(message string) (string, error)

Password prompts for password input (masked)

func Select

func Select(message string, options []string) (string, error)

Select prompts for selection from options

func Spin

func Spin(message string, fn func() error) error

Spin shows a spinner while executing a function

func Step

func Step(message string)

Step displays a step in a process

func Success

func Success(message string)

Success displays a success message

func Value

func Value(v interface{}) string

Value formats a value for display

func Warn

func Warn(message string)

Warn displays 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