ui

package
v1.0.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphDependencies

func GraphDependencies(tasks *tasks.TaskTreeNode)

func HandleError

func HandleError(err error)

func NewInteractiveRunner

func NewInteractiveRunner(list tasks.TaskList, opts ViewOptions, conf config.Config) error

NewInteractiveRunner creates a new interactive runner for long running tasks

func NewNotifyWriter

func NewNotifyWriter() *notifyWriter

func NewRunner

func NewRunner(tasks tasks.TaskList, options ViewOptions)

func NewStatusView

func NewStatusView(list tasks.TaskList, opts ViewOptions) error

Types

type ActiveTask

type ActiveTask struct {
	// contains filtered or unexported fields
}

type ContentUpdateMsg

type ContentUpdateMsg string // fired when the current logs content changes

type InteractiveTaskStatus

type InteractiveTaskStatus struct {
	// contains filtered or unexported fields
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() (s string)

type PostErroredMsg

type PostErroredMsg struct {
	// contains filtered or unexported fields

} // fired when a post task errored

type PostRunnerUpdateMsg

type PostRunnerUpdateMsg tasks.RunnerStatus //fired when a $post tasks updates

type PostStageFinishedMsg

type PostStageFinishedMsg int // fired whe a post action of a scheduled task finished

type PreRunnerUpdateMsg

type PreRunnerUpdateMsg tasks.RunnerStatus //fired when a $pre tasks updates

type PreTaskStatus

type PreTaskStatus struct {
	// contains filtered or unexported fields
}

type ScheduledErroredMsg

type ScheduledErroredMsg struct {
	// contains filtered or unexported fields

} // fired when a scheduled task errored

type ScheduledStageFinishedMsg

type ScheduledStageFinishedMsg int // fired whe a pre action of a scheduled task finished

type ScheduledTask

type ScheduledTask struct {
	// contains filtered or unexported fields
}

type StatusErrorMsg

type StatusErrorMsg struct {
	// contains filtered or unexported fields
}

type StatusModel

type StatusModel struct {
	// contains filtered or unexported fields
}

func (*StatusModel) Init

func (m *StatusModel) Init() tea.Cmd

func (*StatusModel) Update

func (m *StatusModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (*StatusModel) View

func (m *StatusModel) View() (s string)

type StatusStageFinishedMsg

type StatusStageFinishedMsg int

type StatusUpdateMsg

type StatusUpdateMsg tasks.RunnerStatus

type ViewOptions

type ViewOptions struct {
	DisableTUI     bool
	QuiteMode      bool
	InlineOutput   bool
	CombineOutput  bool
	DisablePrefix  bool
	MaxConcurrency int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL