Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultStatusTTL = 5 * time.Second
DefaultStatusTTL is the default time-to-live for status messages.
Variables ¶
This section is empty.
Functions ¶
func ClearInfoMsgCmd ¶
ClearInfoMsgCmd returns a command that clears the info message after the given TTL.
Types ¶
type ClearStatusMsg ¶
type ClearStatusMsg struct{}
ClearStatusMsg is a message to clear the status bar.
type InfoMsg ¶
type InfoMsg struct {
// Type is the type of the message.
Type InfoMsgType
// Msg is the message text.
Msg string
// TTL is the time-to-live for the message.
TTL time.Duration
}
InfoMsg is a message to be displayed in the status bar.
type InfoMsgType ¶
type InfoMsgType int
InfoMsgType is the type of an info message.
const ( InfoMsgTypeInfo InfoMsgType = iota InfoMsgTypeSuccess InfoMsgTypeWarn InfoMsgTypeError InfoMsgTypeUpdate InfoMsgTypePlan InfoMsgTypeYolo )
Click to show internal directories.
Click to hide internal directories.