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

Function path

packages/effect/src/unstable/cli/Flag.ts:211–215  ·  view source on GitHub ↗
(name: string, options?: {
  readonly pathType?: "file" | "directory" | "either" | undefined
  readonly mustExist?: boolean | undefined
  readonly typeName?: string | undefined
})

Source from the content-addressed store, hash-verified

209 * @since 4.0.0
210 */
211export const path = (name: string, options?: {
212 readonly pathType?: "file" | "directory" | "either" | undefined
213 readonly mustExist?: boolean | undefined
214 readonly typeName?: string | undefined
215}): Flag<string> => Param.path(Param.flagKind, name, options)
216
217/**
218 * Creates a file path flag that accepts file paths with optional existence validation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected