(cmd *cobra.Command, value any)
| 177 | } |
| 178 | |
| 179 | func writeJSON(cmd *cobra.Command, value any) error { |
| 180 | encoder := json.NewEncoder(cmd.OutOrStdout()) |
| 181 | encoder.SetEscapeHTML(false) |
| 182 | encoder.SetIndent("", " ") |
| 183 | return encoder.Encode(value) |
| 184 | } |
| 185 | |
| 186 | func writeRawCommandOutput(cmd *cobra.Command, text string) error { |
| 187 | writer := cmd.OutOrStdout() |
no test coverage detected