From aa3ba817175e1bcdf852f11ffa327c1d134ecb26 Mon Sep 17 00:00:00 2001 From: ahmed Date: Fri, 3 Feb 2023 15:56:08 -0500 Subject: [PATCH] Adding --verifier flag, and a method to parse the input. --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 3572dab01..5212f84e5 100644 --- a/main.go +++ b/main.go @@ -46,6 +46,7 @@ var ( printAvgDetectorTime = cli.Flag("print-avg-detector-time", "Print the average time spent on each detector.").Bool() noUpdate = cli.Flag("no-update", "Don't check for updates.").Bool() fail = cli.Flag("fail", "Exit with code 183 if results are found.").Bool() + verifiers = cli.Flag("verifier", "Set custom verification endpoints.").String() gitScan = cli.Command("git", "Find credentials in git repositories.") gitScanURI = gitScan.Arg("uri", "Git repository URL. https://, file://, or ssh:// schema expected.").Required().String() @@ -355,3 +356,8 @@ func printAverageDetectorTime(e *engine.Engine) { fmt.Fprintf(os.Stderr, "%s: %s\n", detectorName, avgDuration) } } + +func splitVerifierURLs(verifierURLs string) []string { + fmt.Println(verifierURLs) + return strings.Split(verifierURLs, ",") +}