(
path: ReadonlyArray<string>,
primitive: Config.Config.Primitive<A>,
split = true
)
| 112 | typeof process !== "undefined" && "env" in process && typeof process.env === "object" ? process.env : {} |
| 113 | |
| 114 | const load = <A>( |
| 115 | path: ReadonlyArray<string>, |
| 116 | primitive: Config.Config.Primitive<A>, |
| 117 | split = true |
| 118 | ): Effect.Effect<Array<A>, ConfigError.ConfigError> => { |
| 119 | const pathString = makePathString(path) |
| 120 | const current = getEnv() |
| 121 | const valueOpt = pathString in current ? Option.some(current[pathString]!) : Option.none() |
| 122 | return pipe( |
| 123 | valueOpt, |
| 124 | core.mapError(() => configError.MissingData(path, `Expected ${pathString} to exist in the process context`)), |
| 125 | core.flatMap((value) => parsePrimitive(value, path, primitive, seqDelim, split)) |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | const enumerateChildren = ( |
| 130 | path: ReadonlyArray<string> |
nothing calls this directly
no test coverage detected