Documentation ¶
Index ¶
- Constants
- type CompleteStepMsg
- type Entry
- type Model
- func (m Model) CompleteStepCmd(err error) tea.Cmd
- func (m Model) Init() tea.Cmd
- func (m Model) SignalAllStepCompletedCmd() tea.Cmd
- func (m Model) SignalStepCompletedCmd(index int) tea.Cmd
- func (m Model) SignalStepErrorCmd(index int, err error) tea.Cmd
- func (m Model) SignalStepStartedCmd(index int) tea.Cmd
- func (m Model) StartCmd() tea.Cmd
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type SignalAllStepCompletedMsg
- type SignalStepCompletedMsg
- type SignalStepErrorMsg
- type SignalStepStartedMsg
- type StartMsg
Constants ¶
View Source
const ( INCOMPLETE = iota COMPLETE FAILED )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompleteStepMsg ¶
type CompleteStepMsg struct {
Err error
}
type Model ¶
type Model struct { Steps []Entry // contains filtered or unexported fields }
func (Model) CompleteStepCmd ¶
CompleteStepCmd set the current step as completed
func (Model) SignalAllStepCompletedCmd ¶
SignalAllStepCompletedCmd signals the finish of all steps
func (Model) SignalStepCompletedCmd ¶
SignalStepCompletedCmd signals the finish of a step This is useful for when you want to trigger a certain action when a certain step finishes
func (Model) SignalStepErrorCmd ¶
SignalStepErrorCmd signals the finish of a step with an error This is useful for when you want to trigger a certain action when a certain step finishes with an error
func (Model) SignalStepStartedCmd ¶
SignalStepStartedCmd signals the start of a step This is useful for when you want to trigger a certain action when a certain step starts
type SignalAllStepCompletedMsg ¶
type SignalAllStepCompletedMsg struct{}
type SignalStepCompletedMsg ¶
type SignalStepCompletedMsg struct {
Index int
}
type SignalStepErrorMsg ¶
type SignalStepStartedMsg ¶
type SignalStepStartedMsg struct {
Index int
}
Click to show internal directories.
Click to hide internal directories.