ui

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(msg string) string

func Confirm

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

Confirm asks the user to confirm an action by typing the expected text.

func ConfirmYesNo

func ConfirmYesNo(message string) (bool, error)

ConfirmYesNo asks a simple yes/no question.

func Error

func Error(msg string)

func Info

func Info(msg string)

func InputString

func InputString(title, placeholder string) (string, error)

InputString asks for a string input.

func MultiSelect

func MultiSelect(title string, options []string) ([]string, error)

MultiSelect presents a multi-select list.

func PrintTable

func PrintTable(w io.Writer, headers []string, rows [][]string)

PrintTable renders a table with the given headers and rows.

func SelectString

func SelectString(title string, options []string) (string, error)

SelectString presents a selection list.

func Step

func Step(msg string)

func Success

func Success(msg string)

func Warn

func Warn(msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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