composer-dependency-analyser icon indicating copy to clipboard operation
composer-dependency-analyser copied to clipboard

Support for text output format

Open crocodele opened this issue 1 year ago • 1 comments

Thanks for creating this tool!

Currently --format has two options: console (default) and junit. The console option uses colors for formatting, which is nice when running in the terminal, but can be problematic e.g. in CI and PR comments.

Would you consider having a text option that is otherwise much like console, but doesn't use color formatting?

crocodele avatar Aug 20 '24 14:08 crocodele

I think more common ways are:

  • autodetect if colors can be used
  • --no-ansi
  • --no-color
  • https://no-color.org/

I'll probably pick one of those solutions.

janedbal avatar Aug 20 '24 21:08 janedbal

--no-color or NO_COLOR=1 would be awesome. :+1:

crocodele avatar Aug 21 '24 07:08 crocodele