task

package
v0.18.0-alpha.24 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationsStructVersion = 20221121
)

Variables

This section is empty.

Functions

func RunTasks

func RunTasks(ctx context.Context, cmd *cobra.Command, args []string, options ...TaskRunOption) chan struct{}

RunTasks runs all tasks asynchronously returns a channel which is closed once all tasks are finished or the provided context is cancelled

Types

type Notifications

type Notifications struct {
	StructVersion      uint32   `json:"struct_version"`
	CliNotifications   []string `json:"cli_notifications"`
	PluginNotification []string `json:"plugin_notifications"`
}

func (*Notifications) GetAll

func (n *Notifications) GetAll() []string

type Runner

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

type TaskRunOption added in v0.19.0

type TaskRunOption func(o *taskRunConfig)

func WithUpdateCheck added in v0.19.0

func WithUpdateCheck(run bool) TaskRunOption

Jump to

Keyboard shortcuts

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