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

Function file

packages/effect/src/unstable/cli/Param.ts:690–701  ·  view source on GitHub ↗
(
  kind: Kind,
  name: string,
  options?: {
    readonly mustExist?: boolean | undefined
  }
)

Source from the content-addressed store, hash-verified

688 * @since 4.0.0
689 */
690export const file = <Kind extends ParamKind>(
691 kind: Kind,
692 name: string,
693 options?: {
694 readonly mustExist?: boolean | undefined
695 }
696): Param<Kind, string> =>
697 path(kind, name, {
698 pathType: "file",
699 typeName: "file",
700 mustExist: options?.mustExist
701 })
702
703/**
704 * Creates a redacted parameter for sensitive data like passwords.

Callers

nothing calls this directly

Calls 1

pathFunction · 0.70

Tested by

no test coverage detected