Is your feature request related to a problem? Please describe.
It might be nice to add colours to the responses i.e., red for failed audits and green for those that pass.
Describe the solution you'd like
Implement the ability to show colour but only if:
- The output is going to an interactive terminal (TTY) and not
stdout or stderr.
- The
NO_COLOR environment variable is set.
- The
TERM environment variable has the value dumb.
- The user passes the option
--no-color.
- Optionally, the
WARDSTONE_NO_COLOR environment variable is set just in case the user wants to disable colours for just this program.
This should just be for the text output. For JSON, a similar effect can be achieved through piping to the jq command.
Is your feature request related to a problem? Please describe.
It might be nice to add colours to the responses i.e., red for failed audits and green for those that pass.
Describe the solution you'd like
Implement the ability to show colour but only if:
stdoutorstderr.NO_COLORenvironment variable is set.TERMenvironment variable has the valuedumb.--no-color.WARDSTONE_NO_COLORenvironment variable is set just in case the user wants to disable colours for just this program.This should just be for the text output. For JSON, a similar effect can be achieved through piping to the
jqcommand.