Step 3: Make a Command-Line Executable
Understand the details of executing the command line.
We'll cover the following...
Although we can run our code by calling the run
function via mix
, it isn’t friendly for other users. So, let’s create something we can run from the command line.
Update mix.exs
file
Mix can package our code, along with its dependencies, into a single file that can be run on any Unix-based platform. This uses Erlang’s escript
utility, which can run precompiled programs stored as a ZIP archive. In our case, the program ...