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

Function fileContent

packages/cli/src/internal/args.ts:217–223  ·  view source on GitHub ↗
(
  config?: Args.Args.BaseArgsConfig
)

Source from the content-addressed store, hash-verified

215
216/** @internal */
217export const fileContent = (
218 config?: Args.Args.BaseArgsConfig
219): Args.Args<readonly [path: string, content: Uint8Array]> =>
220 mapEffect(
221 file({ ...config, exists: "yes" }),
222 (path) => Effect.mapError(InternalFiles.read(path), (e) => InternalHelpDoc.p(e))
223 )
224
225/** @internal */
226export const fileParse = (

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
fileFunction · 0.70

Tested by

no test coverage detected