bazel

package
v0.0.0-...-e9cf350 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

BazelShell

Minimal go library to execute Bazel commands from the shell.

Obviously requires to have bazel on your PATH.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LabelCharacters = "a-zA-Z0-9-_"

LabelCharacters is the list of valid character for a Bazel package

View Source
var PackageLabelRegex = fmt.Sprintf(":[%s]+", LabelCharacters)

PackageLabelRegex the regex to find labels of the current package

View Source
var RepoLabelRegex = fmt.Sprintf("//([%s]+/)*[%s]+(:[%s]+){0,1}", LabelCharacters, LabelCharacters, LabelCharacters)

RepoLabelRegex the regex to find labels of the current repository

Functions

func Query

func Query(folder, query string, flags []string) ([]string, error)

Query performs a Bazel query and returns each line of the result

Types

This section is empty.

Jump to

Keyboard shortcuts

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