bazel

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 26 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 {
	WithEnv(env []string) Bazel
	AQuery(expr string) (*analysis.ActionGraphContainer, error)
	RunCommand(streams ioutils.Streams, command ...string) (int, error)
	InitializeStartupFlags(args []string) ([]string, error)
	Flags() (map[string]*flags.FlagInfo, error)
}

func Find added in v0.11.0

func Find(startDir string) (Bazel, error)

func FindFromWd added in v0.11.0

func FindFromWd() (Bazel, error)

func New

func New(workspaceRoot string) Bazel

type BazelProvider added in v0.11.0

type BazelProvider func() (Bazel, error)

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