gogo

package
v0.0.0-...-4dbef31 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataTags = []string{
	"!!raw",
	"!!str",
	"!!json",
	"!!shell",
	"!!shell:json",
}

Functions

func CloneData

func CloneData(in any) any

Types

type Dep

type Dep struct {
	Task  string    `yaml:"task"`
	Extra yaml.Node `yaml:"data"`
}

type Gogo

type Gogo struct {
	Data  yaml.Node `yaml:"data"`
	Env   []string  `yaml:"env"`
	Tasks []*Task   `yaml:"tasks"`
	// contains filtered or unexported fields
}

func NewGogo

func NewGogo() *Gogo

func (*Gogo) GetData

func (gg *Gogo) GetData() (data any)

func (*Gogo) GetEnv

func (gg *Gogo) GetEnv() []string

func (*Gogo) LoadGlobal

func (gg *Gogo) LoadGlobal(ctx context.Context, b []byte) (err error)

func (*Gogo) LoadTask

func (gg *Gogo) LoadTask(ctx context.Context, name string) (err error)

func (*Gogo) ProcessTags

func (gg *Gogo) ProcessTags(ctx context.Context, todos *container.TodoList, data any) (err error)

type Step

type Step struct {
	// Task trigger
	Task  string    `yaml:"task"`
	Extra yaml.Node `yaml:"extra"`
	// Shell trigger
	Shell string `yaml:"shell"`
}

type Task

type Task struct {
	Name  string    `yaml:"name"`
	Deps  []Dep     `yaml:"deps"`
	Data  yaml.Node `yaml:"data"`
	Env   []string  `yaml:"env"`
	Skip  string    `yaml:"skip"`
	Steps []*Step   `yaml:"steps"`
	Range string    `yaml:"range"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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