Building 70 Projects ranging from beginner to advanced so anyone can β learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company π
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
add global --verbose / -v flag for detailed vulnerability output
CarterPerez-dev4c65756ba92d
diff --git a/PROJECTS/simple-vulnerability-scanner/internal/cli/update.go b/PROJECTS/simple-vulnerability-scanner/internal/cli/update.goindex ad4cf8a6..444f0585 100644--- a/PROJECTS/simple-vulnerability-scanner/internal/cli/update.go+++ b/PROJECTS/simple-vulnerability-scanner/internal/cli/update.go@@ -18,6 +18,8 @@ import ("github.com/spf13/cobra")+var verbose bool+type updateFlags struct {file stringsafe bool@@ -44,6 +46,11 @@ latest stable versions, and checks for known CVEs using OSV.dev.`,SilenceErrors: true,}+ root.PersistentFlags().BoolVarP(+ &verbose, "verbose", "v", false,+ "show full vulnerability details",+ )+root.AddCommand(newUpdateCmd(),newCheckCmd(),