-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
When doing automated deployments with the tool I'm facing a problem with the data the tool returns (console.logs)
For example:
dw files -i 'C:\myfolder' 'myfolder' --recursive true --overwrite true
If this succeeds it returns text:
Uploading files
C:\myfolder\file1.cshtml
C:\myfolder\file2.cshtml
Files uploaded
If it fails I get a combination of text and invalid json
My suggesting would be that any call with the tool would return (console.log) an JSON object with at least 2 sub-objects for example in PowerShell:
$response = dw files -i 'C:\myfolder' 'myfolder' --recursive true --overwrite true
$jsonResponse = $response | Out-String | ConvertFrom-Json
$jsonResponse.json (array of the complete json responses)
$jsonResponse.data (array of the returned data)
This would make us capable of reading the json-response and see if we get 401 Unauthorized or 500 Internal Server Error or "ok"