Documentation
¶
Overview ¶
Package cmdbatch provides a fluent builder for batching tea.Cmd values.
This reduces boilerplate when building command slices in Update functions, following the Elm Architecture pattern of accumulating commands.
Usage:
return m, cmdbatch.New().
Add(p.sidebar.Update(msg)).
AddIf(p.working, p.spinner.Init()).
Add(p.messages.Update(msg)).
Batch()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder accumulates commands for batching.
Click to show internal directories.
Click to hide internal directories.