CLI: Support processing a directory

Closes #12