athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Add helper `Athena::Dotenv.load` method #358

Closed Blacksmoke16 closed 8 months ago

Blacksmoke16 commented 8 months ago

Currently get started using the component, the user has to do like:

Athena::Dotenv.new.load "./.env"

To make this easier for the most common use case, we could add a .load class method that does this for them, defaulting to .env as the file to load.