(cmd *cobra.Command, value any)
| 162 | } |
| 163 | |
| 164 | func writeJSONLine(cmd *cobra.Command, value any) error { |
| 165 | encoder := json.NewEncoder(cmd.OutOrStdout()) |
| 166 | encoder.SetEscapeHTML(false) |
| 167 | return encoder.Encode(value) |
| 168 | } |
| 169 | |
| 170 | func writeJSONLines[T any](cmd *cobra.Command, items []T) error { |
| 171 | for _, item := range items { |
no test coverage detected