buildozer

package
v0.0.0-...-62694dd Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package buildozer provides functions to work with Buildozer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDepsToRules

func AddDepsToRules(workspaceRoot string, missingDeps map[*bazel.Rule][]bazel.Label) error

AddDepsToRules on (rule -> labels) adds labels to rule.

func NewRule

func NewRule(workspaceRoot string, rule *bazel.Rule) error

NewRule uses Buildozer to create a new rule based on the attributes of 'rule'. Used attributes are Name, PkgName, Schema and srcs.

func Ref

func Ref(rule *bazel.Rule) (string, error)

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.

Jump to

Keyboard shortcuts

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