MCPcopy
hub / github.com/Effect-TS/effect / fileText

Function fileText

packages/cli/src/internal/options.ts:331–338  ·  view source on GitHub ↗
(
  name: string
)

Source from the content-addressed store, hash-verified

329
330/** @internal */
331export const fileText = (
332 name: string
333): Options.Options<readonly [path: string, content: string]> =>
334 mapEffect(file(name, { exists: "yes" }), (path) =>
335 Effect.mapError(
336 InternalFiles.readString(path),
337 (error) => InternalValidationError.invalidValue(InternalHelpDoc.p(error))
338 ))
339
340/** @internal */
341export const filterMap = dual<

Callers 1

fileParseFunction · 0.70

Calls 1

fileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…