Skip to content

Remove or convert console output to JSON when --json is given #22

@wundrian

Description

@wundrian

When working non-interactively by calling the sfcc-ci program and specifying --json, for example like in the following case:

docker run docker-registry.releng.demandware.net/ccdx/dx-sfcc-ci:1.1.4-mbickel.refresh sandbox:list --json

The output may not be entirely json, for example when the authentication renewal kicks in and prints "Authentication succeeded" messages via calls to console.info to stdout.

This requires me to parse the stdout to figure out where the JSON object begins.

Can we change this so when --json is given, output is guaranteed to be a JSON object with any non-json output redirected to stderr, if necessary?

Metadata

Metadata

Assignees

Labels

api-changeChange that will most likely break existing APIs and may be rolled out into a new major versionenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions