Skip to content

PathChecks

Filesystem expectations attached by flag.path().

Checked after resolution (not during parse) via the runtime adapter, so src/core stays free of platform I/O and all sources (CLI, env, config) are validated identically.

Signatures

ts
interface PathChecks {}

Members

Properties

mustExist

Reject the value if nothing exists at the path.

ts
mustExist: boolean;

type

Require the existing path to be a file or a directory. Implies existence when set.

ts
type: "file" | "directory" | undefined;

See Also

Released under the MIT License.