Skip to content

Commit 4d02473

Browse files
authored
Merge pull request #412 from jimmidyson/version-notify
Prevent version check for version subcommand
2 parents daacf3d + 90cd742 commit 4d02473

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/minikube/cmd/version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ var versionCmd = &cobra.Command{
2828
Use: "version",
2929
Short: "Print the version of minikube.",
3030
Long: `Print the version of minikube.`,
31+
PersistentPreRun: func(cmd *cobra.Command, args []string) {
32+
// Empty func to override parent pre-run - don't want to perform
33+
// check for new version.
34+
},
3135
Run: func(command *cobra.Command, args []string) {
3236

3337
fmt.Println("minikube version:", version.GetVersion())

0 commit comments

Comments
 (0)