https://wdunicornpro.github.io/posts/cli-bats/
Designing and Testing a CLI tool with BATS - Duo's Blog SE