diff --git a/PROJECTS/simple-vulnerability-scanner/internal/cli/update.go b/PROJECTS/simple-vulnerability-scanner/internal/cli/update.go index 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 string safe 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(),