Skip to content

Commit

Permalink
Add showjson, CEL validation, fix Dockerfile tests, Update README
Browse files Browse the repository at this point in the history
Signed-off-by: santoshkal <ksantosh@intelops.dev>
  • Loading branch information
santoshkal committed Dec 5, 2023
1 parent 78c7e08 commit 9207fe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 8 additions & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ Modes:
Arguments: <reqinput.json> <Rego policy>
Example usage:
./genval --mode=tf --reqinput=deployment.json --policy=<path/to/.rego policy>
%s
- cel: Validating Kubernetes manifests with CEL
Arguments: <reqinput.json> <CEL policy>
Example usage:
./genval --mode=cel --reqinput=deployment.json --policy=<path/to/CEL policy>
- cel: Validating Kubernetes manifests with CEL.
Arguments: <reqinput.json> <CEL policy>
Example usage:
./genval --mode=cel --reqinput=deployment.json --policy=<path/to/CEL policy>
%s
- showjson: Helper mode to print the JSON representation of input
Arguments: <Dockerfile Or .tf file>
Example usage:
- showjson: Helper mode to print the JSON representation of input.
Arguments: <Dockerfile Or .tf file>
Example usage:
./genval --mode=showjson --reqinput=Dockerfle
`
Expand Down
2 changes: 0 additions & 2 deletions cmd/modes/printjson.go → cmd/modes/showjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
log "github.com/sirupsen/logrus"
)

// printJSON.go

func ExecuteShowJSON(reqinput string) {
var prettyJSON bytes.Buffer

Expand Down

0 comments on commit 9207fe0

Please sign in to comment.