From c285f308d804f6d655dbda3e7bdebdd2960f0d3b Mon Sep 17 00:00:00 2001 From: Jon Johnson Date: Mon, 18 Jan 2021 11:04:28 -0800 Subject: [PATCH] Fix ko login This was missed when main.go was moved to the root. --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1f37fa0971..6ee56b9159 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,13 @@ func main() { // Also add the auth group from crane to facilitate logging into a // registry. - cmds.AddCommand(cranecmd.NewCmdAuth()) + authCmd := cranecmd.NewCmdAuth("ko", "auth") + // That was a mistake, but just set it to Hidden so we don't break people. + authCmd.Hidden = true + cmds.AddCommand(authCmd) + + // Just add a `ko login` command: + cmds.AddCommand(cranecmd.NewCmdAuthLogin()) if err := cmds.Execute(); err != nil { log.Fatal("error during command execution:", err)