(results []getResult)
| 186 | } |
| 187 | |
| 188 | func getOperationResults(results []getResult) []jsonOperationResult { |
| 189 | operationResults := make([]jsonOperationResult, 0, len(results)) |
| 190 | for _, result := range results { |
| 191 | var metadata any |
| 192 | if result.Result != nil { |
| 193 | metadata = result.Result |
| 194 | } |
| 195 | operationResults = append(operationResults, newJSONOperationResult(result.Status, result.Kind, result.Input, metadata)) |
| 196 | } |
| 197 | return operationResults |
| 198 | } |
| 199 | |
| 200 | func getStdout(cmd *cobra.Command, src string, recursive bool) error { |
| 201 | if recursive { |
no test coverage detected