Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 972 Bytes

konstraint_doc.md

File metadata and controls

36 lines (25 loc) · 972 Bytes

konstraint doc

Generate documentation from Rego policies

konstraint doc <dir> [flags]

Examples

Generate the documentation
	konstraint doc

Save the documentation to a specific directory
	konstraint doc --output docs/policies.md

Set the URL where the policies are hosted at
	konstraint doc --url https://github.com/plexsystems/konstraint

Options

  -h, --help                   help for doc
      --include-comments       Include comments from the rego source in the documentation
      --no-rego                Do not include the Rego in the policy documentation
  -o, --output string          Output location (including filename) for the policy documentation (default "policies.md")
      --template-file string   File to read the template from (default: "")
      --url string             The URL where the policy files are hosted at (e.g. https://github.com/policies)

SEE ALSO