Skip to content

tasks-json, version and help flag should imply silent #157

Description

@demurgos

The expected output of tasks-json is to emit a JSON representation of the available tasks to the standard output.
Some extra logs may be emitted, causing parse errors by consummers. For example when a gulpfile is transpiled, it emits the line [<time>] Requiring external module <transpiler> followed by the JSON output.

The workaround is to use the --silent flag to suppress the extra logs. Some tools may be missing this flag so they do not work reliably when extra logs are emitted.

Enabling the --silent flag automatically when --tasks-json is used and no log-level is configured would fix those errors and improve ergonomics.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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