Writing Command Line Applications with Elixir
summary
Elixir is used end to end: mix for projects and deps, escript build to produce a single executable, OptionParser for flags, and ports/porcelain to call the CoffeeScript compiler. An agent stores file timestamps, a watcher polls globs and spawns tasks to compile and concatenate ~60–70 CoffeeScript files into one application.js. The pipeline runs, tests use capture_io, and the escript works; porcelain solves the end‑of‑file port issue while rotor and FSWatch are offered as better watchers.
AI-written summary · about
chapters (28)
- 0:00Introduction
- 0:47Why Elixir
- 1:42Im a Wizard
- 4:38Why
- 5:37Library
- 6:54Mix
- 8:03Hex
- 8:45Dependencies
- 9:13Umbrella Projects
- 9:55Running Mix Tasks
- 10:39Writing Command Line Applications
- 13:00Basic IO
- 13:41Capture IO
- 14:13Escape Sequence
- 14:35Files Paths
- 15:24Erlang Ports
- 15:56Basic Usage
- 16:47Interactive Ports
- 17:06Rogue
- 18:22rogueshow
- 19:57porcelain
- 20:46concurrency scalability
- 21:17tasks
- 22:23agents
- 23:24watch a path
- 24:19Agent
- 26:33CoffeeScript
- 29:04Documentation
related talks
16mBuilding an interactive CLI app in Elixir
45mWhat Elixir is about
42mUsing Ruby to Craft and Test Beautiful Command Line Applications
48mKeynote Catalyse Change
26mCrafting Fully Custom Code Generators
41mFormat Your Elixir Code Now
28mCode Spelunking for Knowledge and Profit
28mAutomating the Automator
