Procházet zdrojové kódy

add version to default

Zachary Rice před 1 rokem
rodič
revize
26f34692fa
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      cmd/root.go

+ 3 - 2
cmd/root.go

@@ -34,8 +34,9 @@ order of precedence:
 If none of the three options are used, then gitleaks will use the default config`
 
 var rootCmd = &cobra.Command{
-	Use:   "gitleaks",
-	Short: "Gitleaks scans code, past or present, for secrets",
+	Use:     "gitleaks",
+	Short:   "Gitleaks scans code, past or present, for secrets",
+	Version: Version,
 }
 
 func init() {