Documentation ¶
Index ¶
- func AsyncHandler(activityChan <-chan AsyncMsg) tea.Cmd
- func HandleCacheExplanationMsg(commandID uuid.UUID, explanation string) tea.Cmd
- func HandleEvictCachedExplanationMsg(commandID uuid.UUID) tea.Cmd
- func HandleExecuteMsg(cmd string) tea.Cmd
- func HandleNewCommandMsg(cmd command.Command) tea.Cmd
- func HandleRequestExplanationMsg(cmd command.Command) tea.Cmd
- func HandleSetExplanationMsg(commandID uuid.UUID, explanation string, cache bool) tea.Cmd
- func HandleUpdateCommandMsg(cmd command.Command) tea.Cmd
- func PublishAsyncMsg(activityChan chan AsyncMsg, cmd tea.Cmd)
- type AsyncMsg
- type CacheExplanationMsg
- type EvictCachedExplanationMsg
- type ExecuteCommandMsg
- type NewCommandMsg
- type RequestExplanationMsg
- type SetExplanationMsg
- type UpdateCommandMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncHandler ¶
AsyncHandler returns a AsyncMsg from the activityChan.
func HandleCacheExplanationMsg ¶
HandleNewCommandMsg returns a new CacheExplanationMsg.
func HandleEvictCachedExplanationMsg ¶
HandleEvictCachedExplanationMsg returns a new EvictCachedExplanationMsg.
func HandleExecuteMsg ¶
HandleExecuteMsg returns a new ExecuteCommandMsg
func HandleNewCommandMsg ¶
HandleNewCommandMsg returns a new NewCommandMsg.
func HandleRequestExplanationMsg ¶
HandleRequestExplanationMsg returns a new RequestExplanationMsg.
func HandleSetExplanationMsg ¶
HandleNewCommandMsg returns a new SetExplanationMsg.
func HandleUpdateCommandMsg ¶
HandleUpdateCommandMsg returns a new UpdateCommandMsg.
func PublishAsyncMsg ¶
PublishAsyncMsg sends a tea.Msg through the activityChan.
Types ¶
type CacheExplanationMsg ¶
CacheExplanationMsg is the event triggered for caching the command explanation
type EvictCachedExplanationMsg ¶
EvictCachedExplanationMsg is the event triggered for deleting the cached command explanation
type ExecuteCommandMsg ¶
type ExecuteCommandMsg struct {
Command string
}
ExecuteCommandMsg is the event triggered for executing a command
type NewCommandMsg ¶
NewCommandMsg is the event triggered for creating a new command.
type RequestExplanationMsg ¶
RequestExplanationMsg is the event triggered when the command explanation is requested.
type SetExplanationMsg ¶
SetExplanationMsg is the event triggered for setting the command explanation
type UpdateCommandMsg ¶
UpdateCommandMsg is the event triggered for editing a command.