Skip to content

Missing consistent return data #36

@kevinsteffer

Description

@kevinsteffer

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"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions