blackstork-io / fabric

An open-source command-line tool for cybersecurity reporting automation and a configuration language for reusable templates. Reporting-as-Code
https://blackstork.io/fabric/
Apache License 2.0
12 stars 0 forks source link

Display jq errors with location as diagnostics #185

Closed Andrew-Morozko closed 1 month ago

Andrew-Morozko commented 1 month ago

Also fixes diagnostics showing more than once.

Displaying diagnostics is tricky, because gojq query is not nesessarily a static string, it may contain hcl-style formatting. In order to display things more or less nicely we have to fake a file with the (hcl-rendered) query

Resolves #183