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

Function separateSymbol

packages/effect/src/cli/Prompt.ts:861–861  ·  view source on GitHub ↗
(symbol: string, text: string)

Source from the content-addressed store, hash-verified

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)
864 if (showArrowUp) {

Callers 8

handleDateClearFunction · 0.85
renderDateErrorFunction · 0.85
handleFileClearFunction · 0.85
Prompt.tsFile · 0.85
renderMultiSelectErrorFunction · 0.85
renderNumberErrorFunction · 0.85
renderTextErrorFunction · 0.85
renderToggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected