Skip to content

Commit 0801316

Browse files
authored
Fix ko login (ko-build#298)
This was missed when main.go was moved to the root.
1 parent 34568ca commit 0801316

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ func main() {
4343

4444
// Also add the auth group from crane to facilitate logging into a
4545
// registry.
46-
cmds.AddCommand(cranecmd.NewCmdAuth())
46+
authCmd := cranecmd.NewCmdAuth("ko", "auth")
47+
// That was a mistake, but just set it to Hidden so we don't break people.
48+
authCmd.Hidden = true
49+
cmds.AddCommand(authCmd)
50+
51+
// Just add a `ko login` command:
52+
cmds.AddCommand(cranecmd.NewCmdAuthLogin())
4753

4854
if err := cmds.Execute(); err != nil {
4955
log.Fatal("error during command execution:", err)

0 commit comments

Comments
 (0)