bazel

package
v0.0.0-...-5a219c8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInvariant = errors.New("wtf") // What a Terrible Failure! Probably can't happen with valid file
View Source
var ErrNoSuchListElem = errors.New("no such list element")
View Source
var ErrNoSuchParam = errors.New("no such param")
View Source
var ErrNoSuchRule = errors.New("no such rule")
View Source
var ErrNotListAssingment = errors.New("param is not a list")

Functions

func CheckTarget

func CheckTarget(label string, workspacePath string, envArgs []string, verbose bool) error

If target is of test rule, runs bazel test Otherwise build target

func DeleteEntryFromFile

func DeleteEntryFromFile(contents []byte, ruleName string, paramName string, optionToDelete string) ([]byte, error)

func ExtractEntriesFromFile

func ExtractEntriesFromFile(contents []byte, ruleName string, paramName string) ([]string, error)

ExtractEntriesFromFile extracts contents of param (which should be an array, like deps) of Rule from file contents.

func IsTest

func IsTest(label string, workspace string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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