~/talk

Building an interactive CLI app in Elixir

Talkat Code Elixir LDN 2019 · on Thursday, 2019-07-18· [developer-experience]
links:none on file
slides:none on file

Argues that CLIs should be first‑class in Elixir and shows concrete tooling and pitfalls: use Licenser style mix tasks, IO.gets/IO.puts with IO.ANSI for colored output, and OptionParser for argument parsing; avoid hand‑rolled parsers. Covers releases using distillery commands instead of escripts, redirecting stdout vs stderr, returning proper exit codes (0/1) with System.halt, and prefer flag-based inputs over prompts for automation so CI (example CircleCI) and pipes with jq keep working.

AI-written summary · about

  1. 0:00Intro
  2. 0:11LifeSensor
  3. 1:27Agenda
  4. 1:40Why CLI
  5. 2:56Composability
  6. 5:07Developer Experience
  7. 6:07CLI tools in Elixir
  8. 6:26API Docs
  9. 7:28Option Parse
  10. 8:27Demo
  11. 9:26Complicated
  12. 9:39Question
  13. 10:58Common commands
  14. 12:59User prompts
  15. 14:05Exit codes
  16. 14:59Summary
  17. 15:30Further Resources
  18. 16:04Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.