Skip to content

Commit

Permalink
Refactor version display
Browse files Browse the repository at this point in the history
  • Loading branch information
azgabur committed Jun 4, 2024
1 parent 3788cb7 commit d640425
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/kuadrant/kuadrantctl/pkg/utils"
"github.com/kuadrant/kuadrantctl/version"
logf "sigs.k8s.io/controller-runtime/pkg/log"
)

func versionCommand() *cobra.Command {
Expand All @@ -21,7 +20,7 @@ func versionCommand() *cobra.Command {
return err
}

logf.Log.Info(fmt.Sprintf("kuadrantctl version: %s", version.Version))
fmt.Println("kuadrantctl", version.Version)
return nil
},
}
Expand Down

0 comments on commit d640425

Please sign in to comment.