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

Function fileSchema

packages/cli/src/internal/args.ts:236–239  ·  view source on GitHub ↗
(
  schema: Schema.Schema<A, I, FileSystem.FileSystem | Path.Path | Terminal.Terminal>,
  config?: Args.Args.FormatArgsConfig
)

Source from the content-addressed store, hash-verified

234
235/** @internal */
236export const fileSchema = <I, A>(
237 schema: Schema.Schema<A, I, FileSystem.FileSystem | Path.Path | Terminal.Terminal>,
238 config?: Args.Args.FormatArgsConfig
239): Args.Args<A> => withSchema(fileParse(config), schema)
240
241/** @internal */
242export const fileText = (

Callers

nothing calls this directly

Calls 1

fileParseFunction · 0.70

Tested by

no test coverage detected