tasks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SrcDir    string
	DestDir   string
	Verbose   bool
	DryRun    bool
	Force     bool
	Overwrite bool
)

Functions

func ExecuteTasks

func ExecuteTasks(tasks map[string]Task, task string) error

Types

type Task

type Task struct {
	When struct {
		OS           string `yaml:"os"`
		Condition    string `yaml:"condition"`
		Parameter    string `yaml:"parameter"`
		NotInstalled string `yaml:"notInstalled"`
	}
	Deps     []string
	Cmd      []string
	Links    []string
	Env      []string
	Template Template
	// contains filtered or unexported fields
}

func (Task) Execute

func (t Task) Execute(name string) error

type Template added in v0.2.0

type Template struct {
	Dest           string
	Files          []string
	TemplateString string
	Glob           string
	Vars           map[string]string
}

Jump to

Keyboard shortcuts

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