-
Notifications
You must be signed in to change notification settings - Fork 9
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
fixes #104 by supporting properties via environment variables #108
Conversation
Signed-off-by: Sean Corfield <[email protected]>
Signed-off-by: Sean Corfield <[email protected]>
Signed-off-by: Sean Corfield <[email protected]>
@lread Feedback on adding support for env vars like this? |
(->> props (.mergeProperties settings)) | ||
(->> props slurp .getBytes ByteArrayInputStream. (.mergeProperties settings)))) | ||
(let [settings (Settings.) | ||
props |
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.
The nested let
was bothering me 🙂
(if p-value | ||
(println (str "Ignoring " env-var " as " property " is already set.")) | ||
(do | ||
(println (str "Setting " property " from " env-var ".")) | ||
(System/setProperty property value)))))) |
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.
I really like the feedback to the user here!
It looks succinct and clean to me @seancorfield! |
…-line-arg * upstream/main: address clj-holmes#103 Streamline dependency(-)check.properties overrides (clj-holmes#106) fixes clj-holmes#104 by supporting properties via environment variables (clj-holmes#108)
No description provided.