Skip to content

[cli] The --errorsOnly flag still produces non-error output #8477

@Tigge

Description

@Tigge

Describe the bug

While running the code generator with --errorsOnly it still produces output such as:

✔ Parse Configuration
✔ Generate outputs

Your Example Website or App

  • Default minimal reproduction

Steps to Reproduce the Bug or Issue

  1. Open default minimal reproduction repository
  2. Run npm run codgen --errorsOnly
  3. Notice the output.

Expected behavior

Since there are no errors in the schema or generation, it should not print any output with the --errorsOnly flag.

For very large configurations that runs e.g. in CI environments the output can be quite large. It would be nice if we in those cases could only print the errors, if any.

Screenshots or Videos

No response

Platform

  • OS: Linux
  • NodeJS: 16.17.1
  • graphql version: 16.3.0
  • @graphql-codegen/cli version(s): 2.13.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelated to codegen core/clistage/0-issue-prerequisitesNeeds more information before we can start working on it

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions