FormatSectionHeaderStderr formats a section header for stderr output.
(header string)
| 386 | |
| 387 | // FormatSectionHeaderStderr formats a section header for stderr output. |
| 388 | func FormatSectionHeaderStderr(header string) string { |
| 389 | return formatSectionHeaderWithTTY(header, isStderrTTY) |
| 390 | } |
| 391 | |
| 392 | func formatSectionHeaderWithTTY(header string, ttyCheck func() bool) string { |
| 393 | return applyStyleWithTTY(styles.Header, header, ttyCheck) |