Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't disable color in taskfile.yml #1589

Open
taylormonacelli opened this issue Apr 9, 2024 · 0 comments
Open

can't disable color in taskfile.yml #1589

taylormonacelli opened this issue Apr 9, 2024 · 0 comments
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@taylormonacelli
Copy link

taylormonacelli commented Apr 9, 2024

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.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants