Config min version (#1955)

* init

* minVersion set

* sigh

* addressed some comments, fixed double validate bug
This commit is contained in:
Zachary Rice authored and GitHub committed 2025-10-16 13:53:00 -05:00
1 parent d22371873b
commit 3821f30b06
9 files changed
+84 -6

No files matched your search

+2 -3
View File
@@ -4,10 +4,9 @@ import (
"fmt"
"github.com/spf13/cobra"
"github.com/zricethezav/gitleaks/v8/version"
)
var Version = "version is set by build process"
func init() {
rootCmd.AddCommand(versionCmd)
}
@@ -19,5 +18,5 @@ var versionCmd = &cobra.Command{
}
func runVersion(cmd *cobra.Command, args []string) {
fmt.Println(Version)
fmt.Println(version.Version)
}