Fix ko login (#298)

This was missed when main.go was moved to the root.
This commit is contained in:
jonjohnsonjr
2021-01-18 11:12:14 -08:00
committed by GitHub
parent 34568cac73
commit 0801316109
+7 -1
View File
@@ -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)