ui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphDependencies

func GraphDependencies(collection tasks.Collection)

func HandleError

func HandleError(err error)

func NewInteractiveRunner

func NewInteractiveRunner(forest tasks.Collection, 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

func PrintSuccess

func PrintSuccess(msg string)

Types

type ActiveTask

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

type ActiveView

type ActiveView int
const (
	ViewDefault ActiveView = iota
	ViewHelp
	ViewFullScreen
	ViewAddTask
)

type ContentUpdateMsg

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

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) RenderTabs

func (m *Model) RenderTabs() string

func (*Model) Update

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

func (*Model) View

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

func (*Model) ViewAddTask

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

func (*Model) ViewFullScreen

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

func (*Model) ViewHelp

func (m *Model) ViewHelp() (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 when 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 when 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
}

Directories

Path Synopsis
This Version customizes the handling of suggestions allowing the component to - handle CurrentSuggestion() when there is no current suggestion - exposes MatchedSuggestions() which returns the list of matched suggestions
This Version customizes the handling of suggestions allowing the component to - handle CurrentSuggestion() when there is no current suggestion - exposes MatchedSuggestions() which returns the list of matched suggestions

Jump to

Keyboard shortcuts

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