| 65 | } |
| 66 | |
| 67 | func newJSONOperationOutput(input any, results []jsonOperationResult, warnings []jsonWarning) jsonOperationOutput { |
| 68 | return jsonOperationOutput{ |
| 69 | OK: true, |
| 70 | SchemaVersion: jsonSchemaVersion, |
| 71 | Input: normalizeJSONInput(input), |
| 72 | Results: normalizeJSONOperationResults(results), |
| 73 | Warnings: normalizeJSONWarnings(warnings), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func newJSONCommandOperationOutput(cmd *cobra.Command, input any, results []jsonOperationResult, warnings []jsonWarning) jsonOperationOutput { |
| 78 | return withJSONCommand(cmd, newJSONOperationOutput(input, results, warnings)) |