Skip to content

Enable colored output in cli programs run by task #136

Description

@mehcode

Many cli go programs use https://github.com/mattn/go-isatty ( used by https://github.com/fatih/color ) to determine if they should print colored output. If there is some way to "fool" that from, that could work.

It seems silly to ask each cli program to check a env var to see if they are running inside a taskfile.

PTY redirection could work too. That way we should natively pass the "isatty" check.

Any other thoughts here?

I'd really like to use task _ exclusively but I like my colors too much (e.g.. for golangci-lint).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions