Build a Time-Tracking CLI Application Using a Test-Driven Development

TDD with the oclif testing library

Michael Bogan
Better Programming
Published in
10 min readNov 10, 2021

--

Person sitting on top of an image of a clock
Photo by Kevin Ku on Unsplash

While writing a CLI tool can be a lot of fun, the initial setup and boilerplate — parsing arguments and flags, validation, subcommands — is generally the same for every CLI, and it’s a drag. That’s where the oclif framework saves the day. The boilerplate for writing a single-command or…

--

--

25 years of startups, products, and software architecture. Currently run DevSpotlight — tech content for tech companies. michael@devspotlight.com.