This is tidy up of the cli() function, mainly to remove duplication.
For each output, I've assigned what is about to be put to the console to result. This is to make #25 easier to implement (if it's needed), as separators only need to be implemented in one place.
This is tidy up of the
cli()
function, mainly to remove duplication.For each output, I've assigned what is about to be put to the console to
result
. This is to make #25 easier to implement (if it's needed), as separators only need to be implemented in one place.