terminal

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserQuit            = errors.New("error user quit prompt")
	ErrNotEnoughCharacters = errors.New("must contain at least one character")
)

Functions

func DiffAdd

func DiffAdd(message string)

func DiffMinus

func DiffMinus(message string)

func DiffModify

func DiffModify(message string)

func EnableDebug

func EnableDebug()

func MultiSelect

func MultiSelect(name string, choices []string) ([]string, error)

func PrintBulletedWarnings

func PrintBulletedWarnings(errors []error)

func PrintDebug

func PrintDebug(message string)

func PrintError

func PrintError(message string)

func PrintSuccess

func PrintSuccess(message string)

func PrintWarning

func PrintWarning(message string)

func PromptDefault added in v0.0.6

func PromptDefault(label, defaultValue string) (string, error)

func PromptWithValidate added in v0.0.6

func PromptWithValidate(label, defaultValue string, fn func(s string) error) (string, error)

func StartNewSpinner

func StartNewSpinner(message string) (*pterm.SpinnerPrinter, error)

func TextSuccess

func TextSuccess(message string)

func TextWarning

func TextWarning(message string)

func TextYellow

func TextYellow(message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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