FormatSuccessMessageStderr formats a success message for stderr output.
(message string)
| 160 | |
| 161 | // FormatSuccessMessageStderr formats a success message for stderr output. |
| 162 | func FormatSuccessMessageStderr(message string) string { |
| 163 | return formatSuccessMessageWithTTY(message, isStderrTTY) |
| 164 | } |
| 165 | |
| 166 | func formatSuccessMessageWithTTY(message string, ttyCheck func() bool) string { |
| 167 | return applyStyleWithTTY(styles.Success, "✓ ", ttyCheck) + message |
no test coverage detected