-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make the output of versioninfo() customizable with kwargs #21974
Conversation
|
||
println(io, "Environment:") | ||
for (k,v) in ENV | ||
if ismatch(r"JULIA", String(k)) |
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.
Should we look for prefixes only? Include JL_
-prefixed variables too? We've tried to move away from those, but there may be a few lingering here or there.
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 simply hoisted the printing of JULIA_*
variables to always be displayed and the rest of the env vars for verbose=true
. Add JL_
prefixed env vars to always show too?
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.
Nah, don't bother – I grepped the source code and it seems like we don't have any lingering environment variables that start with JL_
anymore :)
929eced
to
92c2913
Compare
As part of this PR, could we also print the Linux kernel version? Currently we just display The |
Output of |
That is fine then. I was not aware of the |
92c2913
to
cf7fb99
Compare
Rebased. I am happy with the PR as is. It is easy to add more kwargs later if need be. |
cf7fb99
to
34acba7
Compare
34acba7
to
8d991f6
Compare
and prettify the printing a bit
8d991f6
to
e2046b6
Compare
Rebased. |
also reordered some things in a more logical order. Fix #21971
What kwargs should we have?