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

Function annotateSymbol

packages/effect/src/cli/Prompt.ts:859–860  ·  view source on GitHub ↗
(theme: Theme, symbol: string, ...styles: Array<string | Array<string>>)

Source from the content-addressed store, hash-verified

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
862const renderPagingPrefix = (theme: Theme, showArrowUp: boolean, showArrowDown: boolean): string => {
863 const width = Math.max(theme.arrowUp.length, theme.arrowDown.length)

Callers 10

Prompt.tsFile · 0.85
renderDateErrorFunction · 0.85
renderPrefixFunction · 0.85
renderMultiSelectErrorFunction · 0.85
renderNumberErrorFunction · 0.85
renderChoicePrefixFunction · 0.85
renderTextInputFunction · 0.85
renderTextErrorFunction · 0.85
renderToggleFunction · 0.85

Calls 1

annotateMethod · 0.65

Tested by

no test coverage detected