hitachienergy / epiphany

Cloud and on-premises automation for Kubernetes centered industrial grade solutions.
Apache License 2.0
138 stars 107 forks source link

Add support for original output coloring #3218

Closed to-bar closed 2 years ago

to-bar commented 2 years ago

Is your feature request related to a problem? Please describe. Ansible, Terraform and Serverspec, when running with a TTY, print colored output (using ANSI escape codes). epicli uses it's own coloring logic however it's very limited (4 colors) and not accurate since it is based just on simple sub-string patterns.

Describe the solution you'd like Allow epicli to preserve original coloring - like the tools under the hood would run directly on terminal.

Describe alternatives you've considered n/a

Additional context This should fix some false error/warning "detection" when running Serverspec tests.


DoD checklist