confique icon indicating copy to clipboard operation
confique copied to clipboard

Parse env ignoring errors, e.g. `.env_lossy`

Open synek317 opened this issue 1 year ago • 1 comments

In addition to .env(), there could be .env_lossy() that never fails and ignores env var errors.

synek317 avatar Dec 02 '24 00:12 synek317

Briefly looked into this. I think this would require a new method on Partial, e.g. from_lossy_env. Basically same codegen as from_env, but with .unwrap_or(None) instead of ?.

This is not a high priority for me and adding more API surface is always a small cost. Will just leave the issue open for now.

LukasKalbertodt avatar Jul 26 '25 11:07 LukasKalbertodt