Use markdown in blurb
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
---
|
||||
title: "Open An IEx Shell From An Elixir Script"
|
||||
blurb: "We can run an Elixir script with either the <code>elixir</code> or the <code>iex</code> command. Both will execute the code, but the second command opens an interactive IEx shell afterward. What if, we won't know until runtime whether we want a shell or not? How can we start an IEx session even when we use <code>elixir</code>, instead of <code>iex</code>, to run our script?"
|
||||
blurb: "We can run an Elixir script with either the `elixir` or the
|
||||
`iex` command. Both will execute the code, but the second command
|
||||
opens an interactive IEx shell afterward. What if, we won't know until runtime
|
||||
whether we want a shell or not? How can we start an IEx session even when we
|
||||
use `elixir`, instead of `iex`, to run our script?"
|
||||
...
|
||||
|
||||
I recently had occasion to want to start an IEx session from an Elixir script. Here's how I was able to do it.
|
||||
|
||||
Reference in New Issue
Block a user