Documentation ¶
Overview ¶
Package buildozer provides functions to work with Buildozer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDepsToRules ¶
AddDepsToRules on (rule -> labels) adds labels to rule.
func NewRule ¶
NewRule uses Buildozer to create a new rule based on the attributes of 'rule'. Used attributes are Name, PkgName, Schema and srcs.
func Ref ¶
Ref returns a token that Buildozer can use to manipulate a function call. When a rule is instatiated directly (not through a Bazel macro), its reference equals its label. Otherwise, if the macro has a name attribute, the reference looks like a label whose name is the macro's name. Finally, if there's no name attribute, the reference is //<pkg>:<line> where line is where the macro starts in the BUILD file.
Types ¶
This section is empty.