mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-04 13:58:14 +00:00
Add --status flag
This commit is contained in:
parent
cdc49f28b0
commit
0feaa5d75f
@ -59,6 +59,7 @@ var (
|
|||||||
filterOpts FilterOpts
|
filterOpts FilterOpts
|
||||||
includeTestOutput bool
|
includeTestOutput bool
|
||||||
outputFile string
|
outputFile string
|
||||||
|
statusList string
|
||||||
configFileError error
|
configFileError error
|
||||||
controlsCollection []*check.Controls
|
controlsCollection []*check.Controls
|
||||||
)
|
)
|
||||||
@ -174,6 +175,7 @@ func init() {
|
|||||||
RootCmd.PersistentFlags().StringVar(&skipIds, "skip", "", "List of comma separated values of checks to be skipped")
|
RootCmd.PersistentFlags().StringVar(&skipIds, "skip", "", "List of comma separated values of checks to be skipped")
|
||||||
RootCmd.PersistentFlags().BoolVar(&includeTestOutput, "include-test-output", false, "Prints the actual result when test fails")
|
RootCmd.PersistentFlags().BoolVar(&includeTestOutput, "include-test-output", false, "Prints the actual result when test fails")
|
||||||
RootCmd.PersistentFlags().StringVar(&outputFile, "outputfile", "", "Writes the JSON results to output file")
|
RootCmd.PersistentFlags().StringVar(&outputFile, "outputfile", "", "Writes the JSON results to output file")
|
||||||
|
RootCmd.PersistentFlags().StringVar(&statusList, "status", "", "List of comma separated status to be printed")
|
||||||
|
|
||||||
RootCmd.PersistentFlags().StringVarP(
|
RootCmd.PersistentFlags().StringVarP(
|
||||||
&filterOpts.CheckList,
|
&filterOpts.CheckList,
|
||||||
|
Loading…
Reference in New Issue
Block a user