MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotateErrorLine

Function annotateErrorLine

packages/effect/src/cli/Prompt.ts:857–858  ·  view source on GitHub ↗
(theme: Theme, line: string)

Source from the content-addressed store, hash-verified

855}
856
857const annotateErrorLine = (theme: Theme, line: string): string =>
858 Ansi.annotate(theme.colors, line, Ansi.combine(Ansi.italicized, theme.errorColor))
859const annotateSymbol = (theme: Theme, symbol: string, ...styles: Array<string | Array<string>>): string =>
860 symbol.length === 0 ? "" : Ansi.annotate(theme.colors, symbol, ...styles)
861const separateSymbol = (symbol: string, text: string): string => symbol.length === 0 ? text : symbol + " " + text

Callers 4

renderDateErrorFunction · 0.85
renderMultiSelectErrorFunction · 0.85
renderNumberErrorFunction · 0.85
renderTextErrorFunction · 0.85

Calls 2

annotateMethod · 0.65
combineMethod · 0.65

Tested by

no test coverage detected