~/talk

Using Ruby to Craft and Test Beautiful Command Line Applications

Talkat RubyConf India 2012 · 2012-05-14..05-20· [ruby, developer-experience]
links:none on file
links:none on file
slides:none on file

Ruby is used to build and test CLI apps that honor piping, signals and tty detection, parse options with OptionParser or Thor, and reuse config via .rb files; prefer mixlib-shellout or popen3 for subprocess streams, make confirmations scriptable and reversible where possible, expose plugin hooks, log with -v/--quiet flags, and run integration tests by running tests in disposable containers rather than brittle mocks so commands actually change filesystem, network or process state and can be validated end-to-end.

AI-written summary · about

  1. 0:00Crafting Beautiful Command Line Applications using Ruby
  2. 3:53Lightweight
  3. 4:51Consistent UX
  4. 5:38What makes a CLI app good?
  5. 7:43Least Astonishment
  6. 8:37Reversibility
  7. 10:40Graceful Failure
  8. 13:25Confirmations should be scriptable
  9. 16:06Honor Piping
  10. 17:55Scripting Language
  11. 18:53Input Execution Output
  12. 22:19The Mixlib Suite
  13. 26:49Testing
  14. 33:04Plugin Architecture
  15. 34:17Hooks
  16. 35:15Logging
  17. 36:2366 CLI apps could be the first consumers of your services.
  18. 37:23CLI app for a REST API: Github * SCM Plugins for knife Transform Rake scripts into first class CLI apps
  19. 38:31Comments Suggestions
~/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.