Use markdown in blurb

This commit is contained in:
2025-06-16 20:18:05 -07:00
parent 937c19c141
commit 14dd4f24c2
2 changed files with 7 additions and 10 deletions

View File

@@ -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.