MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / PrintResultsJSON

Function PrintResultsJSON

internal/estimate/print.go:102–104  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
102func 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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected