cdimascio / dotenv-java

🗝️ Dotenv is a no-dep, pure Java module that loads environment variables from a .env file
https://github.com/cdimascio/dotenv-java
Apache License 2.0
444 stars 43 forks source link

Offer a `recurseParent()` config option #25

Open 1cg opened 2 years ago

1cg commented 2 years ago

This change allows you to configure a recursive search through parent directories for a .env file. This is useful in a multi-module project when you want to share a common .env file across multiple modules.

No worries if this isn't a feature you want, but I needed it for my own project.

1cg commented 2 years ago

pinging on this, any interest?

Miuler commented 11 months ago

Please, add suppor for this feature, the recursive search of .env works in other languages such as Rust and others, and is very useful.

@1cg @cdimascio