Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "install", Usage: "Install a bazel release (or list release assets)", Flags: []cli.Flag{ cli.BoolFlag{ Name: "assets", Usage: "List assets for a particular release (example: bazel install 0.24.1 --assets)", }, cli.BoolFlag{ Name: "force", Usage: "Force install", }, cli.BoolFlag{Name: "without_jdk"}, cli.StringFlag{ Name: "bazel_source_dir", Usage: "Location of the bazelbuild/bazel git repository (if building from source)", Value: "$HOME/.cache/bzl/github.com/bazelbuild/bazel", }, }, Action: func(c *cli.Context) error { if err := execute(c); err != nil { return cli.NewExitError(fmt.Sprintf("Install aborted: %v", err), 1) } return nil }, }
Functions ¶
func Download ¶ added in v0.1.4
download accepts a reader, writer, and expected asset size, copies the bytes through and displays progress to the console.
func FileExists ¶
func GetFileSha256 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.