add global --verbose / -v flag for detailed vulnerability output

This commit is contained in:
CarterPerez-dev 2026-01-27 23:50:52 -05:00
parent 58d63b63ca
commit 4c65756ba9
1 changed files with 7 additions and 0 deletions

View File

@ -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(),