~/talk

12 Factor CLI Apps with Cobra

Talkat GoDays 2020 · 2020-01-21..01-23· [developer-experience]
links:none on file
slides:none on file

Applies the 12-factor idea to command-line apps and shows how Cobra (Go) implements it: auto-generated shell completion and automatic help and man-style output are demonstrated, plus how Cobra handles global vs local flags and positional-argument vs flag semantics. Covers streaming-friendly vs structured output for CI, piping to Unix tools, and a YouTube-downloader example that actually downloads and reports progress. Shows what Cobra generates, what needs custom code, and which behaviors break in edge cases like reordered flags.

AI-written summary · about

  1. 0:00Introduction to 12 Factor CLI Apps
  2. 5:23Demo of Hugo static site generator
  3. 12:06Designing CLI commands with Cobra
  4. 19:56Handling output and user interaction
  5. 26:30Best practices for CLI apps
  6. 30:40Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.