(
input: { config?: object; name?: string },
fn: (input: { dir: string }) => Effect.Effect<A, E, R>,
)
| 181 | ) |
| 182 | |
| 183 | const withGlobalConfig = <A, E, R>( |
| 184 | input: { config?: object; name?: string }, |
| 185 | fn: (input: { dir: string }) => Effect.Effect<A, E, R>, |
| 186 | ) => |
| 187 | Effect.gen(function* () { |
| 188 | const dir = yield* tmpdirScoped() |
| 189 | if (input.config) yield* writeConfigEffect(dir, schemaConfig(input.config), input.name) |
| 190 | return yield* withGlobalConfigDir(dir, fn({ dir })) |
| 191 | }) |
| 192 | |
| 193 | const withConfigTree = <A, E, R>( |
| 194 | input: { global?: object; project?: object; local?: object }, |
no test coverage detected