You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Colours sould only be enabled when the terminal supports them.
For example, when redirecting output or piping to cat, there should be no escape sequences.
I believe there needs to be a condition around the pretty method (or maybe it should be handled by tracing_subscriber::fmt):
stackablectl --log-level=DEBUG stack list > /tmp/stackablectl.stdout # plain redirect
stackablectl --log-level=DEBUG stack list | cat > /tmp/stackablectl.stdout # pipe through cat
TERM= stackablectl --log-level=DEBUG stack list > /tmp/stackablectl.stdout # explicitly set TERM to nothing
changed the title [-]Colours sould only be enabled when the terminal supports them[/-][+]Implement colored output (with `NO_COLOR` support)[/+]on Nov 21, 2023
Activity
[-]Colours sould only be enabled when the terminal supports them[/-][+]Implement colored output (with `NO_COLOR` support)[/+][-]Implement colored output (with `NO_COLOR` support)[/-][+]feat: Implement colored output (with `NO_COLOR` support)[/+]