Skip to content

Commit

Permalink
better example in README for --query
Browse files Browse the repository at this point in the history
  • Loading branch information
lhitchon committed Mar 11, 2018
1 parent f0531d6 commit 961d6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -100,10 +100,10 @@ The program outputs a JSON string with the results. The JSON object has the foll
* Failures - a list of rules with severity FAILURE that were triggered
* AllViolations - a list of rules with any severity that were triggered (in case you use something other than WARNING or FAILURE)

You can limit the output by specifying a JMESPath expression for the --query command line option. For example, if you just wanted to see the Failures, you can do the following:
You can limit the output by specifying a JMESPath expression for the --query command line option. For example, if you just wanted to see the RecordIds for failed checks, you can do the following:

```
./config-lint --terraform --rules rules/terraform.yml --query 'Failures' files/*
./config-lint --rules rules/terraform.yml --query 'Failures[].ResourceId' files/*
```

# Exit Code
Expand Down

0 comments on commit 961d6fa

Please sign in to comment.