Introduce an arg for cdk CLI app to enforce colored output. There's no such feature yet, the user either can always disable colors (--no-color) or let the app detect the TTY and use colors depending on that (default).
Use Case
I call cdk programmatically from Clojure (using built-in Java ProcessBuilder) and want to get the colored output to sometimes print it myself.
The workarounds currently are to use pty4j or wrap calls with script so that cdk thinks it prints into TTY.
Proposed Solution
It can be a new arg, e.g. --always-color.
Or something like --color=[auto, always, never] similarly to git CLI. But this may require deprecating --no-color.
This is a 🚀 Feature Request
Introduce an arg for
cdkCLI app to enforce colored output. There's no such feature yet, the user either can always disable colors (--no-color) or let the app detect the TTY and use colors depending on that (default).Use Case
I call
cdkprogrammatically from Clojure (using built-in JavaProcessBuilder) and want to get the colored output to sometimes print it myself.The workarounds currently are to use pty4j or wrap calls with script so that
cdkthinks it prints into TTY.Proposed Solution
It can be a new arg, e.g.
--always-color.Or something like
--color=[auto, always, never]similarly togitCLI. But this may require deprecating--no-color.This is a 🚀 Feature Request