Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBazelFlags ¶ added in v1.0.1
AddBazelFlags will process the configured cobra commands and add bazel flags to those commands.
Types ¶
type Bazel ¶
type Bazel interface { WithEnv(env []string) Bazel AQuery(expr string) (*analysis.ActionGraphContainer, error) MaybeReenterAspect(streams ioutils.Streams, args []string) (bool, int, error) RunCommand(streams ioutils.Streams, command ...string) (int, error) InitializeStartupFlags(args []string) ([]string, error) Flags() (map[string]*flags.FlagInfo, error) AbsPathRelativeToWorkspace(relativePath string) (string, error) }
func FindFromWd ¶ added in v0.11.0
func NoWorkspaceRoot ¶ added in v1.0.1
func NoWorkspaceRoot() Bazel
type BazelProvider ¶ added in v0.11.0
type Bazelisk ¶
type Bazelisk struct { // Set to true in getBazelVersion() if this aspect binary is not the user's configured // version and should re-enter another aspect binary of a different version AspectShouldReenter bool // contains filtered or unexported fields }
func NewBazelisk ¶
func (*Bazelisk) GetConfig ¶ added in v1.0.1
GetConfig reads a configuration value from .bazeliskrc.
func (*Bazelisk) GetEnvOrConfig ¶
GetEnvOrConfig reads a configuration value from the environment, but fall back to reading it from .bazeliskrc.
type Output ¶
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.
Click to show internal directories.
Click to hide internal directories.