adeharo9 / cpp-dotenv

Loads environment variables from .env files for C++ projects.
BSD 3-Clause "New" or "Revised" License
87 stars 21 forks source link

cpp-dotenv does not resolve variables in the .env #3

Closed Vi1i closed 4 years ago

Vi1i commented 5 years ago

Example:

DIRECTORY="/home/user/dir"
DATA_VERSION="v2"
4SQ_DIRECTORY="${DIRECTORY}/4sqForGoodDataset"

When bringing in the environment, the ${DIRECTORY} does not resolve.

adeharo9 commented 4 years ago

I've focused myself on solving many problems that the parser still had lately. Once I'm sure it parses everything right and there are no errors, I'll work on this since it'd be just absolutely complete to have this feature too.

adeharo9 commented 4 years ago

I'm adding these feature to the update on the parser. Once I have it rewritten it'll be much easier to add.

Vi1i commented 4 years ago

Do you need other help on this project?

adeharo9 commented 4 years ago

Right now it depends on how difficult it is to make the transition to ANTLR; from my past experiences, it shouldn't be much of a problem (although I think it is still too early to say).

However, I'll probably need to start adding some tests to the project, since there are many different situations to cover now and manual testing is not an option anymore (specially because of some platform-specific code fruit of #15 that needs to be tested). Any help on those would be much appreciated.

adeharo9 commented 4 years ago

Implemented (and slightly tested).

Already merged to the dev branch, waiting for the next merge to master.

Closing the issue meanwhile.

Vi1i commented 4 years ago

I appreciate the work