Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add colour to responses #76

Open
tshakalekholoane opened this issue Aug 29, 2023 · 0 comments
Open

feat: add colour to responses #76

tshakalekholoane opened this issue Aug 29, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tshakalekholoane
Copy link
Collaborator

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.

@tshakalekholoane tshakalekholoane added enhancement New feature or request good first issue Good for newcomers labels Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant