eltoroit / ETCopyData

SFDX Plugin to populate your scratch org and/or developer sandbox with data extracted from multiple sObjects.
113 stars 23 forks source link

When specifying --json the only output should be the json results #14

Closed homerlex closed 5 years ago

homerlex commented 5 years ago

When putting the --json option in the command the only output should in json. I have an automated system running that executes sfdx commands and parses the output (expecting only json).

If I don't specify a --loglevel it appears to be giving me TRACE level logging. Is there no way to turn logging completely off?

Also, if I specify --loglevel=error I get no JSON output. All I get is:

ETCopyData:Import... /

^ BTW I don't want the above message to appear at all when I specify --json.

eltoroit commented 5 years ago

This should be an easy fix

eltoroit commented 5 years ago

Just perform this call

sfdx ETCopyData:full -c EXFiles/data --json

And I get nothing but a JSON output.