From 0801316109e3ca451b7021ffa48426082ca384fc Mon Sep 17 00:00:00 2001 From: jonjohnsonjr Date: Mon, 18 Jan 2021 11:12:14 -0800 Subject: [PATCH] Fix ko login (#298) 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)