bazel

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BazeliskVersion is filled in via x_defs when building a release.
	BazeliskVersion = "development"
)

Functions

This section is empty.

Types

type Bazel

type Bazel interface {
	AQuery(expr string) (*analysis.ActionGraphContainer, error)
	Spawn(command []string, streams ioutils.Streams) (int, error)
	RunCommand(command []string, streams ioutils.Streams) (int, error)
	Flags() (map[string]*flags.FlagInfo, error)
	AvailableStartupFlags() []string
	SetStartupFlags(flags []string)
}

func New

func New() Bazel

type Bazelisk

type Bazelisk struct {
	// contains filtered or unexported fields
}

func NewBazelisk

func NewBazelisk(workspaceRoot string) *Bazelisk

func (*Bazelisk) GetEnvOrConfig

func (bazelisk *Bazelisk) GetEnvOrConfig(name string) string

GetEnvOrConfig reads a configuration value from the environment, but fall back to reading it from .bazeliskrc in the workspace root.

func (*Bazelisk) Run

func (bazelisk *Bazelisk) Run(args []string, repos *core.Repositories, streams ioutils.Streams, env []string) (int, error)

Run runs the main Bazelisk logic for the given arguments and Bazel repositories.

type Output

type Output struct {
	Mnemonic string
	Path     string
}

func ParseOutputs

func ParseOutputs(agc *analysis.ActionGraphContainer) []Output

ParseOutputs reads the proto result of AQuery and extracts the output file paths with their generator mnemonics.

Directories

Path Synopsis
Package mock contains generated files.
Package mock contains generated files.
mock
Package mock contains generated files.
Package mock contains generated files.

Jump to

Keyboard shortcuts

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