Documentation
¶
Index ¶
- func New() (Model, Handler, chan<- bool)
- type Handler
- type InputCompleted
- type Model
- func (m Model) ErrorLog(message string) string
- func (m Model) InfoLog(message string) string
- func (m Model) Init() tea.Cmd
- func (m Model) ReceiveUpdateMessages() tea.Msg
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) WarnLog(message string) string
- type Styles
- type TaskStatus
- type TaskStatusStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
Abort(string)
Done()
Error(string)
Info(string)
OnQuit(tea.Model, tea.Msg) tea.Msg
Print(string)
SetCurrentTaskCompleted()
SetCurrentTaskCompletedTitle(string)
SetCurrentTaskCompletedTitleWithStatus(string, TaskStatus)
SetInputModel(tea.Model) tea.Model
SetTask(string, string)
Warn(string)
}
type InputCompleted ¶
type InputCompleted struct {
// contains filtered or unexported fields
}
type Model ¶
type Model struct {
Styles Styles
// contains filtered or unexported fields
}
func (Model) ReceiveUpdateMessages ¶
type Styles ¶
type Styles struct {
Bold lipgloss.Style
Spinner lipgloss.Style
InfoLogHeading lipgloss.Style
InfoLogBody lipgloss.Style
WarnLogHeading lipgloss.Style
WarnLogBody lipgloss.Style
ErrorLogHeading lipgloss.Style
ErrorLogBody lipgloss.Style
Marks TaskStatusStyle
}
func DefaultStyles ¶
func DefaultStyles() Styles
type TaskStatus ¶ added in v0.25.3
type TaskStatus string
const ( TaskStatusSuccess TaskStatus = "success" TaskStatusError TaskStatus = "error" TaskStatusSkipped TaskStatus = "skipped" )
type TaskStatusStyle ¶ added in v0.25.3
func DefaultMarks ¶ added in v0.25.3
func DefaultMarks() TaskStatusStyle
func (TaskStatusStyle) Render ¶ added in v0.25.3
func (s TaskStatusStyle) Render(status TaskStatus) string
Click to show internal directories.
Click to hide internal directories.