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

Function renderFileFilter

packages/effect/src/unstable/cli/Prompt.ts:2279–2288  ·  view source on GitHub ↗
(state: FileState, renderOptions?: RenderOptions | undefined)

Source from the content-addressed store, hash-verified

2277}
2278
2279const renderFileFilter = (state: FileState, renderOptions?: RenderOptions | undefined) => {
2280 const filterValue = state.query.length === 0
2281 ? renderOptions?.plain === true
2282 ? FILE_FILTER_PLACEHOLDER
2283 : Ansi.annotate(FILE_FILTER_PLACEHOLDER, Ansi.blackBright)
2284 : renderOptions?.plain === true
2285 ? state.query
2286 : Ansi.annotate(state.query, Ansi.combine(Ansi.underlined, Ansi.cyanBright))
2287 return `[${FILE_FILTER_LABEL}: ${filterValue}]`
2288}
2289
2290const renderFiles = (
2291 state: FileState,

Callers 2

handleFileClearFunction · 0.85
Prompt.tsFile · 0.85

Calls 2

annotateMethod · 0.65
combineMethod · 0.65

Tested by

no test coverage detected