ec opa parse

Parse Rego source file== Synopsis

Parse Rego source file and print AST.

ec opa parse <path> [flags]


-f, --format

set output format (Default: pretty)

-h, --help

help for parse (Default: false)


include or exclude optional elements. By default comments are included. Current options: locations, comments. E.g. --json-include locations,-comments will include locations and exclude comments.


opt-in to OPA features and behaviors that will be enabled by default in a future OPA v1.0 release (Default: false)

Options inherited from parent commands


same as verbose but also show function names and line numbers (Default: false)


path to the Kubernetes config file to use


less verbose output (Default: false)


max overall execution duration (Default: 5m0s)


enable trace logging (Default: false)


more verbose output (Default: false)