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

Function annotateLine

packages/cli/src/internal/prompt/multi-select.ts:33–33  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

31 options: SelectOptions<A>
32) {
33 const annotateLine = (line: string): Doc.AnsiDoc => Doc.annotate(Doc.text(line), Ansi.bold)
34 const prefix = Doc.cat(leadingSymbol, Doc.space)
35 return Arr.match(options.message.split(NEWLINE_REGEX), {
36 onEmpty: () => Doc.hsep([prefix, trailingSymbol]),

Callers 2

renderOutputFunction · 0.70
renderErrorFunction · 0.70

Calls 3

annotateMethod · 0.65
combineMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected