Skip to content

Commit

Permalink
Fix ko login (#298)
Browse files Browse the repository at this point in the history
This was missed when main.go was moved to the root.
  • Loading branch information
jonjohnsonjr authored Jan 18, 2021
1 parent 34568ca commit 0801316
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0801316

Please sign in to comment.