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

Function FormatListItemStderr

pkg/console/console.go:289–291  ·  view source on GitHub ↗

FormatListItemStderr formats a list item for stderr output.

(item string)

Source from the content-addressed store, hash-verified

287
288// FormatListItemStderr formats a list item for stderr output.
289func FormatListItemStderr(item string) string {
290 return formatListItemWithTTY(item, isStderrTTY)
291}
292
293func formatListItemWithTTY(item string, ttyCheck func() bool) string {
294 return applyStyleWithTTY(styles.ListItem, " • "+item, ttyCheck)

Calls 1

formatListItemWithTTYFunction · 0.85