ui

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkboxes

func Checkboxes(label string, opts []string) ([]string, error)

func ConfirmPrompt

func ConfirmPrompt(label string) (bool, error)

func Error

func Error(message ...interface{})

Error Show error message to user

func Errorf

func Errorf(format string, message ...interface{})

Errorf Show error message (formatted) to user

func Fatal

func Fatal(message ...interface{})

Fatal Show error message to user, then exit

func Fatalf

func Fatalf(format string, message ...interface{})

Fatalf Show error message (formatted) to user, then exit

func InputPrompt

func InputPrompt(label string) (string, error)

func NewPanel

func NewPanel() *panel

func PrintfColor

func PrintfColor(c Color, format string, a ...interface{})

func PrintlnColor

func PrintlnColor(c Color, a ...interface{})

func SingleCheckboxes

func SingleCheckboxes(label string, opts []string) (string, error)

func SingleCheckboxesIndex

func SingleCheckboxesIndex(label string, opts []string) (int, error)

Types

type Color

type Color int
const (
	Red Color = iota
	Green
	Yellow
	Blue
	Purple
	Cyan
	White
)

func (Color) String

func (c Color) String() string

Jump to

Keyboard shortcuts

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