ui

package
v0.0.0-...-3b3e90e Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrimaryStyle   = termenv.Style{}.Foreground(termenv.ForegroundColor())
	SecondaryStyle = termenv.Style{}.Foreground(profile.Color("14")).Bold()
	AccentStyle    = termenv.Style{}.Foreground(profile.Color("11")).Bold()

	ErrorStyle = termenv.Style{}.Foreground(profile.Color("9")).Bold()
	InfoStyle  = termenv.Style{}.Foreground(profile.Color("12")).Bold()
	SoftStyle  = termenv.Style{}.Foreground(profile.Color("8"))
)

Functions

func BlinkingTitle

func BlinkingTitle(str string)

func Copy

func Copy(str string)

func Debug

func Debug(str ...string)

func Error

func Error(str string)

func Info

func Info(title string, info string)

func IsVerbose

func IsVerbose() bool

func Print

func Print(str ...string)

func PrintAmend

func PrintAmend(before time.Time, after time.Time, msg string)

func PrintError

func PrintError(err error)

func PrintSchedule

func PrintSchedule(schedule config.Schedule)

func PrintTemplate

func PrintTemplate(str string)

func SetVerbose

func SetVerbose(enabled bool)

func Setup

func Setup() error

func Success

func Success(str string)

func TearDown

func TearDown() error

func Title

func Title(str string)

func Warning

func Warning(str ...string)

func YesNoQuestion

func YesNoQuestion(question string) (bool, error)

Types

type PrettyPrinter

type PrettyPrinter interface {
	PrettyPrint()
}

Jump to

Keyboard shortcuts

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