Skip to content

Commit

Permalink
fix(version): do not need kubeconfig for version command
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent 8468a66 commit 5943cf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func NewCmdVersion() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Print provider certification tool version",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
// Override root cmd
return nil
},
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(Version.String())
fmt.Printf("Sonobuoy Version: %s\n", buildinfo.Version)
Expand Down

0 comments on commit 5943cf9

Please sign in to comment.