Skip to content

can't disable color in taskfile.yml #1589

@taylormonacelli

Description

@taylormonacelli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions