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

Function annotateLine

packages/cli/src/internal/prompt/number.ts:75–76  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

73 onEmpty: () => Doc.empty,
74 onNonEmpty: (errorLines) => {
75 const annotateLine = (line: string): Doc.AnsiDoc =>
76 Doc.annotate(Doc.text(line), Ansi.combine(Ansi.italicized, Ansi.red))
77 const prefix = Doc.cat(Doc.annotate(pointer, Ansi.red), Doc.space)
78 const lines = Arr.map(errorLines, (str) => annotateLine(str))
79 return Doc.cursorSavePosition.pipe(

Callers 2

renderErrorFunction · 0.70
renderOutputFunction · 0.70

Calls 3

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…