In elixir you can use the iex shell with the context of your application with the following command...
iex -S mix
This command is super handy and lets us use an application functions in the interactive shell.
I am wondering if it is possible to start the interactive shell with arguments, or if it is possible to have your application call some functions before the user can interact with the shell.
For example, let's say I have an application called MyApp and I start it with iex -S mix. Instead of having to manually enter commands into the shell, e.g.
iex()> import MyApp.Module
iex()> alias MyApp.Module.OtheName
iex()> value = OtherName.function(1234)
there would be a way to have this happen automatically.