use

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

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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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