Documentation
¶
Index ¶
- func Confirm(prompt string, onResult func(yes bool) tea.Msg) tea.Msg
- func ConfirmYes(prompt string, onYes func() tea.Msg) tea.Msg
- func Error(err error) tea.Msg
- func PromptForInput(prompt string, history services.HistoryProvider, ...) tea.Msg
- func SetStatus(msg string) tea.Cmd
- func SetTeaMessage(event tea.Msg) tea.Cmd
- type ErrorMsg
- type ForegroundJobUpdate
- type MessageWithMode
- type MessageWithRightMode
- type MessageWithStatus
- type ModeMessage
- type PromptForInputMsg
- type StatusMsg
- type WrappedStatusMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptForInput ¶
Types ¶
type ForegroundJobUpdate ¶
type MessageWithMode ¶
type MessageWithMode interface { MessageWithStatus ModeMessage() string }
type MessageWithRightMode ¶ added in v0.4.0
type MessageWithRightMode interface { MessageWithStatus RightModeMessage() string }
type MessageWithStatus ¶
type MessageWithStatus interface {
StatusMessage() string
}
type ModeMessage ¶
type ModeMessage string
ModeMessage indicates that the mode should be changed to the following
type PromptForInputMsg ¶
type PromptForInputMsg struct { Prompt string History services.HistoryProvider OnDone func(value string) tea.Msg OnCancel func() tea.Msg OnTabComplete func(value string) (string, bool) }
PromptForInput indicates that the context is requesting a line of input
type WrappedStatusMsg ¶
Click to show internal directories.
Click to hide internal directories.