Files
gitleaks--gitleaks/cmd/version.go
T
wehub-resource-sync 48b3ccf279
gitleaks / gitleaks (push) Has been skipped
Test / test (ubuntu-latest) (push) Failing after 0s
Test / test (windows-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:12:29 +08:00

23 lines
350 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/zricethezav/gitleaks/v8/version"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "display gitleaks version",
Run: runVersion,
}
func runVersion(cmd *cobra.Command, args []string) {
fmt.Println(version.Version)
}