Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "cache", Usage: "Run a local server to host a remote cache for bazel", Flags: []cli.Flag{ cli.BoolFlag{ Name: "bazel_flag", Usage: "print flag for bazel", }, }, Action: func(c *cli.Context) error { if c.Bool("bazel_flag") { fmt.Printf("--remote_http_cache=http://%s:%d%s", bcache.Default.Address, bcache.Default.Port, bcache.Default.PathPrefix) return nil } err := bcache.Default.Serve() if err != nil { return cli.NewExitError(fmt.Sprintf("cache server failed: %v", err), 1) } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.