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

Function file

packages/cli/src/internal/args.ts:211–215  ·  view source on GitHub ↗
(config?: Args.Args.PathArgsConfig)

Source from the content-addressed store, hash-verified

209
210/** @internal */
211export const file = (config?: Args.Args.PathArgsConfig): Args.Args<string> =>
212 makeSingle(
213 Option.fromNullable(config?.name),
214 InternalPrimitive.path("file", config?.exists || "either")
215 )
216
217/** @internal */
218export const fileContent = (

Callers 2

fileContentFunction · 0.70
fileTextFunction · 0.70

Calls 1

makeSingleFunction · 0.70

Tested by

no test coverage detected