Skip to content

Disable color when returning JSON formatted output #2615

@zFernand0

Description

@zFernand0

Describe the bug

When requesting JSON output from the CLI (--response-format-json) or programmatically, we should disable colors to enusre the JSON output can be successfully parsed.

Expected and actual results

No unicode-color characters in JSON output

Additional context

This came up after discussing:

Note:

  • Please make sure to port this to V2 when fixing 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-lowLegit issue but cosmetic or nice-to-haveseverity-lowBug that makes the usage of the Zowe less convenient but doesn't impact key use cases

    Type

    No type

    Projects

    Status

    Low Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions