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

Function FormatSectionHeaderStderr

pkg/console/console.go:388–390  ·  view source on GitHub ↗

FormatSectionHeaderStderr formats a section header for stderr output.

(header string)

Source from the content-addressed store, hash-verified

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

Calls 1