refactor(cli): extract output method