(cmd *cobra.Command, text string)
| 184 | } |
| 185 | |
| 186 | func writeRawCommandOutput(cmd *cobra.Command, text string) error { |
| 187 | writer := cmd.OutOrStdout() |
| 188 | if strings.HasSuffix(text, "\n") { |
| 189 | _, err := fmt.Fprint(writer, text) |
| 190 | return err |
| 191 | } |
| 192 | _, err := fmt.Fprintln(writer, text) |
| 193 | return err |
| 194 | } |
| 195 | |
| 196 | func renderHumanSection(title string, rows []keyValue) string { |
| 197 | rendered, err := renderHumanSectionResult(title, rows) |
no outgoing calls
no test coverage detected