Skip to content
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 elixir version to Basic Info in default view #77

Open
Hajto opened this issue Aug 5, 2017 · 3 comments
Open

Add elixir version to Basic Info in default view #77

Hajto opened this issue Aug 5, 2017 · 3 comments

Comments

@Hajto
Copy link
Contributor

Hajto commented Aug 5, 2017

I think Elixir version (if it is IEx or it is an Elixir node) should be nice addition.

@arkgil
Copy link
Contributor

arkgil commented Aug 5, 2017

What do you mean by Elixir version?

@Hajto
Copy link
Contributor Author

Hajto commented Aug 5, 2017

zrzut ekranu 2017-08-05 o 22 32 03

Here you have OTP version and other information. If think it would be nice addition to add here Elixir version as well.

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

@arkgil
Copy link
Contributor

arkgil commented Aug 5, 2017

Sorry, I misunderstood the proposal completely 😄 Yep, that would be nice to have 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants