Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ModeAuto detect console capabilities ModeAuto = "auto" // ModeTTY use terminal capability for advanced rendering ModeTTY = "tty" // ModePlain dump raw events to output ModePlain = "plain" // ModeQuiet don't display events ModeQuiet = "quiet" // ModeJSON outputs a machine-readable JSON stream ModeJSON = "json" )
View Source
const (
DRYRUN_PREFIX = " DRY-RUN MODE - "
)
Variables ¶
View Source
var ( DoneColor colorFunc = aec.BlueF.Apply TimerColor colorFunc = aec.BlueF.Apply CountColor colorFunc = aec.YellowF.Apply WarningColor colorFunc = aec.YellowF.With(aec.Bold).Apply SuccessColor colorFunc = aec.GreenF.Apply ErrorColor colorFunc = aec.RedF.With(aec.Bold).Apply PrefixColor colorFunc = aec.CyanF.Apply )
View Source
var Mode = ModeAuto
Mode define how progress should be rendered, either as ModePlain or ModeTTY
Functions ¶
func Full ¶
Full creates an EventProcessor that render advanced UI within a terminal. On Start, TUI lists task with a progress timer
func Quiet ¶
func Quiet() api.EventProcessor
Types ¶
Click to show internal directories.
Click to hide internal directories.