You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following #246 it would be nice to have an option to force colored output when needed even when it is piped. This would be useful in scripts, e.g. output=$(spruce diff --colored ...) or with less, e.g. spruce diff --colored ... | less -R.
The text was updated successfully, but these errors were encountered:
It seems to be reasonably standard to call such a parameter "--color", and let it take the options "always" (coloured), "never" (not coloured), and "auto" (coloured if a tty is detected). For instance, GNU grep, GNU ls, git log, shellcheck, and many other common tools use this naming scheme. It may therefore be worth doing the same, to benefit from users' likely familiarity with those tools.
Following #246 it would be nice to have an option to force colored output when needed even when it is piped. This would be useful in scripts, e.g.
output=$(spruce diff --colored ...)
or with less, e.g.spruce diff --colored ... | less -R
.The text was updated successfully, but these errors were encountered: