How to write your first CLI with Thor

Fabiano B.
Sep 11, 2017 · 4 min read

At Magnetis we are moving our cloud infrastructure to Kubernetes. To do so I started creating a bunch of shell scripts inside our app. There is no problem with it, but as soon as i got 5 different shell script files it started to get messy.

In one of pair programming sessions that we do in our hiring process, a candidate chose Thor to write the test project. It was organized and seemed easy to get…