-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add libenvpp #158
Add libenvpp #158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already looks much better than before, but there are still some issues.
One of them is that there are no unit tests to make sure environment variable parsing works as expected. To this end libenvpp supports the set_for_testing
function on the prefix
, which can be used in unit tests to specify which value a certain variable should have.
Further issues are:
29d4c64
to
99b8e58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
be38542
to
2d9e9eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now.
However, before merging this, the libenvpp dependency should not be on something in the development branch, but rather the official release of version 1.1.0. I will wait with the release of that version until other people have also reviewed this PR, so that if further libenvpp features are required I can add them to version 1.1.0 without having to do another release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've added some notes.
Edit: Also please rebase onto master as CI should be fixed now!
30b1deb
to
cecd852
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more notes!
cecd852
to
7486e90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
7486e90
to
8dc777d
Compare
I released v1.1.0 of libenvpp. So this PR can be updated to use the official release and then be merged. |
7faf84b
to
c81e456
Compare
Test config properly parses correct env vars or reports when they can not be parsed. Add test for deprecated env vars. libenvpp checked out at v1.1 tag.
c81e456
to
bb3db10
Compare
For multiple runtime parameters celerity uses environment variables.
This library makes the fetching of these variables easier while providing suggestions if miss spelling some of them.
It is also OS independent, hence we do not have to worry about OS specifics for fetching the env vars.
This PR depends on #155