~/talk

Reinventing the CLI with Go

Talkat GopherCon Europe 2022 · 2022-07-28..07-31· [go, developer-experience]
slides:none on file

Reinvents the CLI from machine-first to human-first, arguing for explicit success/failure signals, concise output, color with accessibility and rewritten errors; shows working examples: generated scaffolding from Cobra, graceful signal handling code for Control-C, interactive prompts wired to structs via Survey, and a live terminal dashboard with widgets and resizing via Termdash. Demo code includes manpage generation, sensible exit codes, and guidance on flags vs arguments so CLIs are robust and empathic.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:57What is a CLI?
  3. 5:26Why build CLI tools with Go
  4. 7:37CLI design philosophy
  5. 11:57Input design and syntax
  6. 14:50Go CLI implementation
  7. 16:49Interactivity and tools
  8. 20:40Output and error handling
  9. 23:06Documentation and conclusion
~/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.