Documentation
¶
Index ¶
- Variables
- func NoColor()
- type Event
- func (e *Event) Done(msg ...string) *Event
- func (e *Event) Error(msg ...string) *Event
- func (e *Event) Spinner() string
- func (e *Event) Start() *Event
- func (e *Event) Stop() *Event
- func (e *Event) Success(msg ...string) *Event
- func (e *Event) Text() string
- func (e *Event) Warning(msg ...string) *Event
- func (e *Event) WithText(text string) *Event
- type EventStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // #unused DoneColor colorFunc = color.BlueString // #unused TimerColor colorFunc = color.BlueString CountColor colorFunc = color.YellowString WarningColor colorFunc = color.YellowString SuccessColor colorFunc = color.GreenString ErrorColor colorFunc = color.RedString // #unused PrefixColor colorFunc = color.CyanString )
Functions ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents a progress event.
type EventStatus ¶
type EventStatus int
const ( Running EventStatus = iota // Done means that the current task is done Done // Warning means that the current task has warning Warning // Error means that the current task has errored Error )
Click to show internal directories.
Click to hide internal directories.