LibreCat / Catmandu

Catmandu - a data processing toolkit
https://librecat.org
176 stars 31 forks source link

Color output #232

Open nichtich opened 8 years ago

nichtich commented 8 years ago

Color output on command line would be nice. I implemented CSV and JSON in color for wdq but it's a hack.

vpeil commented 7 years ago

Yes, color output would be cool. There are several tools to improve the CLI experience:

netsensei commented 6 years ago

We use Term::ANSIColor in the Datahub::Factory project we maintain. (which actually runs on top of Catmandu libraries).

We implemented a quick, basic -v CLI option which allows us to do verbose output on STDOUT. Like status messages during complex processing. These messages are coloured.

See: https://github.com/thedatahub/Datahub-Factory/blob/master/lib/Datahub/Factory/Flash.pm

We don't colour log4perl log messages, because we use these primarily for logging to a custom file appender. But we could colour those given the possibility that log4perl also outputs to STDOUT if we configure it to do so.