use

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "use",
	Usage: "Output a workspace rule for a given github repository",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:   "rule",
			Usage:  "Name of the rule to output",
			Value:  "http_archive",
			EnvVar: "BZL_USE_RULE_OUTPUT",
		},
		cli.StringFlag{
			Name:   "type",
			Usage:  "Type of asset to download (zip, tar)",
			Value:  "tar",
			EnvVar: "BZL_USE_ASSET_TYPE",
		},
		cli.StringFlag{
			Name:   "history",
			Usage:  "Query recent commit log for the given branch (example: --history=master)",
			EnvVar: "BZL_USE_COMMIT_HISTORY",
		},
	},
	Action: func(c *cli.Context) error {
		err := execute(c)
		if err != nil {
			return cli.NewExitError(fmt.Sprintf("use failed: %v", err), 1)
		}
		return nil
	},
}

Functions

func Download

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 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