mix termui.run (TermUI v1.0.0)

View Source

Runs a TermUI application.

Usage

mix termui.run

Examples

From a TermUI example directory:

mix termui.run

From any project with a TermUI app:

mix termui.run --module MyApp

Options

--module MODULE    - Module name containing run/0 (default: autodetect)
--function NAME    - Function name to call (default: run)
--iex              - Run in IEx-compatible mode (same as env TERM_UI_IEX_MODE=true)

How it works

  1. Autodetects the module containing run/0 from mix.exs app name
  2. Compiles the project
  3. Calls Module.run() to start the TUI application