bazelutil

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.1.7

func CopyFile(src, dst string) error

https://gist.github.com/elazarl/5507969

func FirstTargetComplete

func FirstTargetComplete(events []*bes.BuildEvent) *bes.TargetComplete

From a list of BuildEvents, return the first one typed as 'Completed'. Anecdotally, there is only one per bazel invocation. Pointer will be nil if none found.

func SetVersion

func SetVersion(version string) error

Set the version of bazel to use. Given '0.7.0', this looks for .cache/bzl/release/0.7.0/bin/bazelutil.

Types

type Bazel

type Bazel struct {
	Name string
}

func New

func New() *Bazel

func (*Bazel) Invoke

func (b *Bazel) Invoke(args []string, dir string) (error, int)

Make Generic invocation to bazel

func (*Bazel) InvokeWithEvents

func (b *Bazel) InvokeWithEvents(args []string) ([]*bes.BuildEvent, error)

Make Invocation to bazel and get back the event graph

func (*Bazel) Query

func (b *Bazel) Query(pattern string) (*build.QueryResult, error)

Do a query invocation and get the query result proto back

Jump to

Keyboard shortcuts

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