~/talk

Building Swift CLIs

Talkat App Builders 2020 · 2020-05-11..05-12· [swift]
links:none on file
slides:none on file

A working Swift CLI called renmoji generates a random emoji from emojis.json using Swift Argument Parser for declarative options and Swift Tools Support Core (tsc basic / tsc utility) for paths, streams and progress animations. Implementation moves logic into services for dependency injection and unit tests; the demo adds a person-style progress animation, an optional gender filter, a custom JSON path, throws a typed EmojisNotFound error, and includes a test that verifies that error so the feature stays working.

AI-written summary · about

  1. 0:00Introduction to Swift CLIs
  2. 1:23Why use Swift for CLIs
  3. 2:05Apple's CLI libraries
  4. 3:30TSC Basic library
  5. 4:32TSC Utility library
  6. 5:39New argument parser
  7. 7:24Testing and errors
  8. 8:30Dependency injection
  9. 9:56Demo: Renmoji project
  10. 12:27Adding progress animation
  11. 15:41Filtering emojis by gender
  12. 18:29Custom emoji JSON file
  13. 20:39Custom error handling
  14. 22:00Testing error cases
  15. 23:27Summary and Q&A
~/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.