INNER CODE UNIT · Go

init

google/go-containerregistry · cmd/gcrane/main.go:30

func init() {
	logs.Warn.SetOutput(os.Stderr)
	logs.Progress.SetOutput(os.Stderr)
}

const (
	use   = "gcrane"
	short = "gcrane is a tool for managing container images on gcr.io and pkg.dev"
)

func main() {
	options := []crane.Option{crane.WithAuthFromKeychain(gcrane.Keychain)}
	// Same as crane, but override usage and keychain.
	root := cmd.New(use, short, options)

	// Add or override commands.
	gcraneCmds := []*cobra.Command{gcmd.NewCmdList(), gcmd.NewCmdGc(), gcmd.NewCmdCopy(), cmd.NewCmdAuth(options, "gcrane", "auth")}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…