confique
confique copied to clipboard
Parse env ignoring errors, e.g. `.env_lossy`
In addition to .env(), there could be .env_lossy() that never fails and ignores env var errors.
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.