Skip to content

feat: add colour to responses #76

Description

@tshakalekholoane

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions