erlangpl
erlangpl copied to clipboard
Add elixir version to Basic Info in default view
I think Elixir version (if it is IEx or it is an Elixir node) should be nice addition.
What do you mean by Elixir version?

In IEx when you do:
Application.spec(:elixir)
You get keyword list:
description: 'elixir', id: [], vsn: '1.4.5',...
where vsn field gives you elixir version. I think it would be nice addition to display that info.
And getting this information in erlang should be as simple as porting this code snippet to erlang:
# from github elixir repo
@spec spec(app) :: [{key, value}] | nil
def spec(app) do
case :application.get_all_key(app) do
{:ok, info} -> :lists.keydelete(:env, 1, info)
:undefined -> nil
end
end
Sorry, I misunderstood the proposal completely 😄 Yep, that would be nice to have 👍