feat: auto-detect color output in CI environments by vmaerten · Pull Request #2569 · go-task/task

@vmaerten changed the title feat(flags): auto-detect color output in CI environments feat: auto-detect color output in CI environments

Dec 12, 2025

@vmaerten vmaerten marked this pull request as ready for review

December 12, 2025 18:33
Automatically enable colored output when running in CI environments
(CI=true or GITHUB_ACTIONS=true) without requiring FORCE_COLOR=1.

Priority: CLI flag > taskrc config > NO_COLOR > FORCE_COLOR/CI > TTY default

Also adds `color` option to taskrc for global configuration.
Also simplify CI detection to only check CI=true since most CI providers
(including GitHub Actions) set this variable automatically.

@vmaerten

@vmaerten

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>