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

Function fileParse

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

Source from the content-addressed store, hash-verified

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

Callers 1

fileSchemaFunction · 0.70

Calls 2

parseMethod · 0.80
fileTextFunction · 0.70

Tested by

no test coverage detected