pub fn load(
paths: &[impl AsRef<Path>],
env: &mut BTreeMap<OsString, OsString>,
) -> Result<()>Expand description
Reads paths into env as Nx’s loadAndExpandDotEnvFile does. The files
are merged first, the first to set a key winning; each key env does not
hold is set; then each value is expanded against env and what the files
expanded before it, and set, which also fills a variable set but empty. A
variable env already holds with another value keeps it. A file that
does not exist is skipped.