refactor(cli): extract output method
Merge pull request #26 from sanemat/feature/extract-cli-output

refactor(cli): extract output method