mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Fix ko login (#298)
This was missed when main.go was moved to the root.
This commit is contained in:
@@ -43,7 +43,13 @@ func main() {
|
|||||||
|
|
||||||
// Also add the auth group from crane to facilitate logging into a
|
// Also add the auth group from crane to facilitate logging into a
|
||||||
// registry.
|
// 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 {
|
if err := cmds.Execute(); err != nil {
|
||||||
log.Fatal("error during command execution:", err)
|
log.Fatal("error during command execution:", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user