Documentation
¶
Index ¶
- func ParseInto(input string, rules *RuleSet, file string, line int) error
- type AttrSet
- type BuildCommand
- type BuildRules
- type CleanTool
- type CommandsTool
- type CompCommand
- type CompileDbTool
- type Database
- type DbTool
- type DirectRule
- type Executor
- type File
- type Files
- type Graph
- type GraphTool
- type InfoFn
- type ListTool
- type MetaRule
- type MultiError
- type Options
- type PathTool
- type Pattern
- type Prereqs
- type Printer
- type Recipes
- type Rule
- type RuleSet
- type StatusTool
- type TargetsTool
- type Tool
- type UpdateReason
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrSet ¶
type AttrSet struct {
Regex bool // regular expression meta-rule
Virtual bool // targets are not files
Quiet bool // is not displayed as part of the build process
NoMeta bool // cannot be matched by meta rules
NonStop bool // does not stop if the recipe fails
Rebuild bool // this rule is always out-of-date
Linked bool // only run this rule if a sub-rule that requires it needs to run
Implicit bool // not listed in $input
Dep string // dependency file
Order bool
}
func ParseAttribs ¶
func (*AttrSet) UpdateFrom ¶ added in v0.3.0
type BuildCommand ¶ added in v0.1.0
type BuildRules ¶ added in v0.1.0
type BuildRules []BuildCommand
type CommandsTool ¶ added in v0.1.0
func (*CommandsTool) Run ¶ added in v0.1.0
func (t *CommandsTool) Run(g *Graph, args []string) error
func (*CommandsTool) String ¶ added in v0.1.0
func (t *CommandsTool) String() string
type CompCommand ¶ added in v0.1.0
type CompileDbTool ¶ added in v0.1.0
func (*CompileDbTool) Run ¶ added in v0.1.0
func (t *CompileDbTool) Run(g *Graph, args []string) error
func (*CompileDbTool) String ¶ added in v0.1.0
func (t *CompileDbTool) String() string
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewCacheDatabase ¶
func NewDatabase ¶
func (Database) AddOutputDir ¶ added in v0.4.0
func (d Database) AddOutputDir(dir string)
func (Database) WriteBytesTo ¶ added in v0.0.4
type DirectRule ¶
type DirectRule struct {
// contains filtered or unexported fields
}
A DirectRule specifies how to build a fully specified list of targets from a list of prereqs.
func NewDirectRule ¶
func NewDirectRule(targets []string, prereqs []prereq, recipe []string, attrs AttrSet) DirectRule
func NewDirectRuleBase ¶ added in v1.0.0
func NewDirectRuleBase(targets []string, prereqs []string, recipe []string, attrs AttrSet) DirectRule
func (*DirectRule) Equals ¶ added in v0.0.4
func (r *DirectRule) Equals(other *DirectRule) bool
func (*DirectRule) String ¶
func (r *DirectRule) String() string
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
type File ¶ added in v0.0.4
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) ExpandRecipes ¶
ExpandRecipes evaluates all variables and expressions in the recipes for the build
type MetaRule ¶
type MetaRule struct {
// contains filtered or unexported fields
}
A MetaRule specifies the targets to build based on a pattern.
type MultiError ¶ added in v0.0.3
type MultiError []error
func (MultiError) Error ¶ added in v0.0.3
func (e MultiError) Error() string
type RuleSet ¶
type RuleSet struct {
// contains filtered or unexported fields
}
func MergeRuleSets ¶ added in v1.0.0
func NewRuleSet ¶
func (*RuleSet) AllTargets ¶ added in v0.1.0
func (*RuleSet) MainTarget ¶ added in v0.0.4
type StatusTool ¶ added in v0.1.1
func (*StatusTool) String ¶ added in v0.1.1
func (t *StatusTool) String() string
type TargetsTool ¶ added in v0.1.0
func (*TargetsTool) String ¶ added in v0.1.0
func (t *TargetsTool) String() string
type UpdateReason ¶ added in v0.1.1
type UpdateReason int
const ( UpToDate UpdateReason = iota OnlyPrereqs Rebuild NoExist ForceUpdate HashModified TimeModified RecipeModified Untracked Prereq LinkedUpdate UpToDateDynamic )
func (UpdateReason) String ¶ added in v0.1.1
func (u UpdateReason) String() string
Click to show internal directories.
Click to hide internal directories.