ui

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(v string) string

func Blue

func Blue(v interface{}) aurora.Value

func Bold

func Bold(v interface{}) aurora.Value

func Details added in v0.1.7

func Details(v string) string

func Gray

func Gray(v interface{}) aurora.Value

func Green

func Green(v interface{}) aurora.Value

func Heading

func Heading(v string) string

func Info

func Info(v string) string

func KeyValue

func KeyValue(key string, value interface{}) string

func NewProgress

func NewProgress(max int, description ...string) *pb.ProgressBar

func PromptEmail

func PromptEmail(v interface{}) error

func PromptInput

func PromptInput(msg string, v interface{}, opts ...*PromptOptions) error

func PromptPassword

func PromptPassword(v interface{}) error

func PromptSelect

func PromptSelect(message string, options []string, v interface{}) error

func PromptYesNo

func PromptYesNo(message string, v interface{}) error

func Red

func Red(v interface{}) aurora.Value

func Warning

func Warning(v string) string

func Yellow

func Yellow(v interface{}) aurora.Value

Types

type PromptOptions added in v0.2.4

type PromptOptions struct {
	Suggest func(toComplete string) []string
}

Jump to

Keyboard shortcuts

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