effect-io-ai

Package: @effect/cli
Module: Args

Args.fileSchema

Creates a file argument that reads, parses and validates its contents.

Can optionally provide a custom argument name (defaults to "file").

Signature

declare const fileSchema: <I, A>(schema: Schema<A, I, FileSystem | Path | Terminal>, config?: Args.FormatArgsConfig | undefined) => Args<A>

Source

Since v1.0.0