Skip to content

Commit

Permalink
Add --status flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mtpereira committed Oct 23, 2021
1 parent cdc49f2 commit 0feaa5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ var (
filterOpts FilterOpts
includeTestOutput bool
outputFile string
statusList string
configFileError error
controlsCollection []*check.Controls
)
Expand Down Expand Up @@ -174,6 +175,7 @@ func init() {
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().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(
&filterOpts.CheckList,
Expand Down

0 comments on commit 0feaa5d

Please sign in to comment.