Alternative to `ConfigProvider.orElse` for returning an `Effect<ConfigProvider>`
Hi, about
Config
Config
, is there any alternative to
ConfigProvider.orElse
ConfigProvider.orElse
where I can return an
Effect<ConfigProvider>
Effect<ConfigProvider>
, rather than a plain
ConfigProvider
ConfigProvider
?
My use case: I want to read the CLI app configuration from env vars first, and fall back to a JSON file otherwise. But I only want to do this on a as-needed basis. I don't want any configuration errors in situations where no env var nor JSON config file exist.