MCPcopy Create free account
hub / github.com/github/gh-aw / FormatSuccessMessageStderr

Function FormatSuccessMessageStderr

pkg/console/console.go:162–164  ·  view source on GitHub ↗

FormatSuccessMessageStderr formats a success message for stderr output.

(message string)

Source from the content-addressed store, hash-verified

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

Callers 2

ensureDevcontainerConfigFunction · 0.92

Calls 1

Tested by

no test coverage detected