PrintResultsJSON writes the estimate results as a JSON document to stdout. It mirrors the same data as PrintResults but in a machine-readable format.
(results []resources.EstimateResult)
| 100 | // PrintResultsJSON writes the estimate results as a JSON document to stdout. |
| 101 | // It mirrors the same data as PrintResults but in a machine-readable format. |
| 102 | func PrintResultsJSON(results []resources.EstimateResult) { |
| 103 | PrintResultsJSONWithGuardrail(results, nil) |
| 104 | } |
| 105 | |
| 106 | // PrintResultsJSONWithGuardrail writes the estimate results as JSON, optionally |
| 107 | // embedding a guardrail verdict under the top-level "guardrail" key. Passing a |
nothing calls this directly
no test coverage detected