dotenv-java icon indicating copy to clipboard operation
dotenv-java copied to clipboard

[Enhancement request] write variable to env file

Open patpatpat123 opened this issue 2 years ago • 0 comments

Hello there,

This is my first post in this repo. If not anything else, big thanks for this very cool project.

I would like to ask if it is possible to start a feature request. As of right now, it is possible to "read" a env file by doing the dotenv.get("mykey")

Would it be possible to have a feature to write some values?

For instance: starting with the file .env

With content

mykey = somevalue

Then to run dotenv.set("anotherkey", "someothervalue")

And the .env file would be

anotherkey =someothervalue

Hope this is not too much of a trouble.

Thank you

patpatpat123 avatar Oct 25 '23 13:10 patpatpat123