uselagoon / lagoon-sync

Apache License 2.0
6 stars 5 forks source link

Reintroduce colourised output as an option #70

Closed bomoko closed 1 year ago

bomoko commented 2 years ago

in #69 we removed the ANSI colour characters from the output. The colourisation itself wasn't bad, it was more how it was showing up in logs and being unreadable in some cases.

We can/should reintroduce the colours though.

Perhaps output is colourised if:

  1. we are working in interactive mode

Output is not colourised if:

  1. we're in non-interactive mode (here we can assume that lagoon-sync is being run as a script)
  2. the user explicitly sets colourisation off (a --no-color switch, perhaps)
bomoko commented 1 year ago

closed via #70