ThePoShWolf/Curl2PS

Add support for multi-line strings

Closed this issue · 2 comments

Often times curl commands are multiple lines separated by \, ConvertTo-IRM should support that.

Here's an example from #1 :

$CurlCommand = @"
curl -X GET \
https://PlopServer/identity/api/tenants/Woopa/subtenants \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {{token}}'
"@

ConvertTo-IRM -CurlString $CurlCommand

This returns the \ in the output, which also ends up being multiple lines. It should only output a single line.

This was added with #23