add global --verbose / -v flag for detailed vulnerability output
This commit is contained in:
parent
58d63b63ca
commit
4c65756ba9
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue