install

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: 23 Imported by: 0

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

func Download(reader io.Reader, writer io.Writer, size int64, title string) error

download accepts a reader, writer, and expected asset size, copies the bytes through and displays progress to the console.

func FileExists

func FileExists(filename string) bool

func GetFileSha256

func GetFileSha256(filename string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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