config

package
v0.0.0-...-34c130d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellOptions

type ShellOptions struct {
	Executable string   `json:"executable,omitempty"`
	Args       []string `json:"args,omitempty"`
}

type Task

type Task struct {
	Label          string            `json:"label"`
	Type           string            `json:"type"`
	Command        string            `json:"command"`
	Args           []string          `json:"args,omitempty"`
	Group          interface{}       `json:"group,omitempty"`
	ProblemMatcher interface{}       `json:"problemMatcher,omitempty"`
	Options        *TaskOptions      `json:"options,omitempty"`
	DependsOn      interface{}       `json:"dependsOn,omitempty"`
	DependsOrder   string            `json:"dependsOrder,omitempty"`
	Presentation   *TaskPresentation `json:"presentation,omitempty"`
	RunOptions     *TaskRunOptions   `json:"runOptions,omitempty"`
}

func LoadTasks

func LoadTasks(filePath string) ([]Task, error)

func (*Task) GetGroupKind

func (t *Task) GetGroupKind() string

func (*Task) IsDefaultInGroup

func (t *Task) IsDefaultInGroup() bool

type TaskOptions

type TaskOptions struct {
	Cwd   string            `json:"cwd,omitempty"`
	Env   map[string]string `json:"env,omitempty"`
	Shell *ShellOptions     `json:"shell,omitempty"`
}

type TaskPresentation

type TaskPresentation struct {
	Echo             *bool  `json:"echo,omitempty"`
	Reveal           string `json:"reveal,omitempty"`
	Focus            *bool  `json:"focus,omitempty"`
	Panel            string `json:"panel,omitempty"`
	ShowReuseMessage *bool  `json:"showReuseMessage,omitempty"`
	Clear            *bool  `json:"clear,omitempty"`
	Group            string `json:"group,omitempty"`
}

type TaskRunOptions

type TaskRunOptions struct {
	RunOn string `json:"runOn,omitempty"`
}

type TasksFile

type TasksFile struct {
	Version string `json:"version"`
	Tasks   []Task `json:"tasks"`
}

Jump to

Keyboard shortcuts

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