MCPcopy Index your code
hub / github.com/Effect-TS/effect / fileParse

Function fileParse

packages/cli/src/internal/args.ts:226–233  ·  view source on GitHub ↗
(
  config?: Args.Args.FormatArgsConfig
)

Source from the content-addressed store, hash-verified

224
225/** @internal */
226export const fileParse = (
227 config?: Args.Args.FormatArgsConfig
228): Args.Args<unknown> =>
229 mapEffect(fileText(config), ([path, content]) =>
230 Effect.mapError(
231 InternalFiles.parse(path, content, config?.format),
232 (e) => InternalHelpDoc.p(e)
233 ))
234
235/** @internal */
236export const fileSchema = <I, A>(

Callers 1

fileSchemaFunction · 0.70

Calls 2

parseMethod · 0.80
fileTextFunction · 0.70

Tested by

no test coverage detected