ui

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldString

func BoldString(msg string) string

func BoldStringf

func BoldStringf(msg string, a ...interface{}) string

func DisplayPath

func DisplayPath(path string) string

func ErrorString

func ErrorString(msg string) string

func ErrorStringf

func ErrorStringf(msg string, a ...interface{}) string

func FaintString

func FaintString(msg string) string

func FaintStringf

func FaintStringf(msg string, a ...interface{}) string

func Indent

func Indent(s, indent string) string

func LinkString

func LinkString(msg string) string

func LinkStringf

func LinkStringf(msg string, a ...interface{}) string

func PrimaryString

func PrimaryString(msg string) string

func PrimaryStringf

func PrimaryStringf(msg string, a ...interface{}) string

func PrintError

func PrintError(msg string)

func PrintErrorf

func PrintErrorf(msg string, a ...interface{})

func PrintSuccess

func PrintSuccess(msg string)

func PrintSuccessf

func PrintSuccessf(msg string, a ...interface{})

func PrintUnexpectedError

func PrintUnexpectedError(err interface{}, stack string)

func PrintUsageErrorAndExit

func PrintUsageErrorAndExit(cmd *cobra.Command, msg string)

func PrintWarning

func PrintWarning(msg string)

func PrintWarningf

func PrintWarningf(msg string, a ...interface{})

func StripColor

func StripColor(str string) string

func SuccessString

func SuccessString(msg string) string

func SuccessStringf

func SuccessStringf(msg string, a ...interface{}) string

func UnderlineString

func UnderlineString(msg string) string

func UnderlineStringf

func UnderlineStringf(msg string, a ...interface{}) string

func WarningString

func WarningString(msg string) string

func WarningStringf

func WarningStringf(msg string, a ...interface{}) string

Types

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(msg string, opts SpinnerOptions) *Spinner

func (*Spinner) Fail

func (s *Spinner) Fail()

func (*Spinner) Stop

func (s *Spinner) Stop()

func (*Spinner) Success

func (s *Spinner) Success()

type SpinnerOptions

type SpinnerOptions struct {
	EnableLogging bool
	NoColor       bool
	Indent        string
}

Jump to

Keyboard shortcuts

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