From 0feaa5d75f93e38e50be6c49e2380cc16355d31a Mon Sep 17 00:00:00 2001 From: Manuel Tiago Pereira Date: Sat, 23 Oct 2021 17:35:50 +0100 Subject: [PATCH] Add --status flag --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 99b802d..3952e3f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -59,6 +59,7 @@ var ( filterOpts FilterOpts includeTestOutput bool outputFile string + statusList string configFileError error 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().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,