(provider, path)
| 661 | provider: ConfigProvider.ConfigProvider, |
| 662 | path: Path |
| 663 | ) => Effect.Effect<ConfigCursor> = (provider, path) => |
| 664 | provider.load(path).pipe( |
| 665 | // Source errors travel as defects so they bypass schema issue recovery; `schema` converts them back. |
| 666 | mapReasons<SourceError, never>((reason) => |
| 667 | Cause.isFailReason(reason) ? Cause.makeDieReason(reason.error).annotate(Cause.reasonAnnotations(reason)) : reason |
| 668 | ), |
| 669 | Effect.mapEager((node) => ({ provider, path, node, toString: cursorToString })) |
| 670 | ) |
| 671 | |
| 672 | const loadChildCursor = (cursor: ConfigCursor, segment: string | number): Effect.Effect<ConfigCursor> => |
| 673 | loadCursor(cursor.provider, [...cursor.path, segment]) |
no test coverage detected