rule

package
v0.0.0-...-2cfd4b1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByName

type ByName []*Rule

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type Rule

type Rule struct {
	Name             string
	Commands         []string
	Sources          []string
	Outputs          []string
	Parents          []*Rule
	Children         []*Rule
	WorkingDirectory string
	HasRan           bool
}

func (Rule) GetHashDirectory

func (rule Rule) GetHashDirectory(fs afero.Fs, cacheDirectory string) (string, error)

func (*Rule) RunCommand

func (rule *Rule) RunCommand() error

Jump to

Keyboard shortcuts

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