Basic info commands after you have done iex -s mix and started looking at your project. I thought it was ๐ . More fun than needing to hit tab twice and search at the blurb of text that came back of all possible options.
Get the name of my project instead of looking in the mix file:
Mix.Project.get.project[:app]
Tell me all the keys in my application
2. :application.get_all_key(Mix.Project.get.project[:app])
Tell me the modules in my phoenix application named hello_world
3. :application.get_key(:hello_world, :modules)
Give me a breakdown of the modules in my project (combination of #1 and #3 above)
4. :application.get_key(Mix.Project.get.project[:app], :modules)
Give me a breakdown of the modules of the phoenix application I have brought into this project.
5. :application.get_key(:phoenix, :modules)
And how to get function names for the module Phoenix (can be applied to any other module)
Mix.Phoenix.__info__(:functions)
https://stackoverflow.com/a/28664356/5283424
Most of the information above is extrapolated from this stack overflow answer ๐ https://stackoverflow.com/a/41738708/5283424
Things to test in a runtime elixir script:
- Mix.Project.get.project[:app] |> IO.inspect
- :application.get_key(:hi, :modules) |> IO.inspect
- Application.get_application HiWeb |> IO.inspect
- TOBE continued