MCPcopy Index your code
hub / github.com/Effect-TS/effect / annotateLine

Function annotateLine

packages/cli/src/internal/prompt/text.ts:104–107  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

102 onEmpty: () => Doc.empty,
103 onNonEmpty: (errorLines) => {
104 const annotateLine = (line: string): Doc.AnsiDoc =>
105 Doc.text(line).pipe(
106 Doc.annotate(Ansi.combine(Ansi.italicized, Ansi.red))
107 )
108 const prefix = Doc.cat(Doc.annotate(pointer, Ansi.red), Doc.space)
109 const lines = Arr.map(errorLines, (str) => annotateLine(str))
110 return Doc.cursorSavePosition.pipe(

Callers 2

renderErrorFunction · 0.70
renderOutputFunction · 0.70

Calls 4

pipeMethod · 0.65
annotateMethod · 0.65
combineMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…