task icon indicating copy to clipboard operation
task copied to clipboard

can't disable color in taskfile.yml

Open taylormonacelli opened this issue 10 months ago • 1 comments

I'd like to instruct task to not use colored output within the Taskfile if possible.

This doesn't work:

cat >Taskfile.yml <<EOF
version: "3"
vars:
  NO_COLOR: 1
env:
  NO_COLOR: 1
tasks:
  default:
    env:
      NO_COLOR: 1
    cmds:
    - echo foo
EOF
task 

These work fine:

NO_COLOR=1 task
task --color=false

Not sure if i'm getting syntax wrong or its not supported.

taylormonacelli avatar Apr 09 '24 18:04 taylormonacelli

Hi @taylormonacelli,

It is not supported at the moment. The only way to do it is by setting the env variable or with the CLI flags

vmaerten avatar Jul 07 '24 07:07 vmaerten