Cribbed from https://gist.github.com/mow4cash/e2fd4991bd2b787ca407a355d134b0ff
The goal is to make a document that you can either use as the original use case (copy/pasta) or with a command line interface. A secondary goal is to make a test and maintenance process for the original document.