Skip to content

Commit

Permalink
usage information in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 1, 2019
1 parent d3039d4 commit 63ef92f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ in the Open Policy Agent documentation.

## Usage

```console
$ conftest --help
Test your configuration files using Open Policy Agent

Usage:
conftest <file> [file...] [flags]

Flags:
--fail-on-warn return a non-zero exit code if only warnings are found
-h, --help help for conftest
-p, --policy string directory for Rego policy files (default "policy")
--version version for conftest
```

```console
$ conftest deployment.yaml
testdata/deployment.yaml
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/gobwas/glob v0.2.3 // indirect
github.com/hashicorp/go-multierror v1.0.0
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e // indirect
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e
github.com/open-policy-agent/opa v0.10.6
github.com/pkg/errors v0.8.1 // indirect
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a // indirect
Expand Down

0 comments on commit 63ef92f

Please sign in to comment.