Placing Things into Other Things
summary
Claims a Rack‑style middleware model for CLIs that wraps and contextualizes streams so libraries never write direct to STDOUT, shows streaming templates that let embedded progress bars print in-place, and introduces forms for decoding and validation to convert strings into typed objects before actions run. Demonstrates integration with existing parsers (optparse trollop slop) and a plugin architecture used to build the rum tool and a reusable framework called mvcli.
AI-written summary · about
chapters (13)
- 0:00Start
- 1:07Command Line Interfaces
- 4:01Output
- 5:22Share Formatting Code in a Command Line
- 8:41Progress Bars
- 9:36Decoding and Validation
- 20:05Contextualize the Streams
- 20:37Introduction of Middleware
- 21:18Middleware in a Cli Context
- 21:50Middleware Api
- 23:19Using Templates
- 25:27Streaming Components
- 29:47Command Line Invocations and Web Requests
related talks
27mHarness the power of functions to build composable rack applications
30mThe Power of Middleware - Building Your Own Mini Web Framework on Rack
41mRack - A Framework to Roll Your Own
29mThe thin CLIent approach
28mIn a World of Middleware, Who Needs Monolithic Applications
38mRewriting Rack: A Functional Approach
33mRack Middleware as a General Purpose Abstraction
22mRack Middleware as a General Purpose Abstraction
