ericcornelissen/webmangler

Allow disabling color in CLI output

Opened this issue · 0 comments

Feature Request

packages/cli, v0.1.7

Description

The CLI currently has colored outputs (e.g. for the % reduction). While useful, sometimes it's desirable to not have color in the output. Whatever the exact reason, this should be supported.

Proposal

Support configurations to prevent the CLI from outputting colored output, including (but not necessarily limited to, suggestions are welcome):

  • The NO_COLOR environment variable
  • The TERM environment variable has the value dumb
  • The output is not a TTY
  • A to-be-added --no-color flag is set

References