Open avonwyss opened 6 years ago
Agreed, it would be a good idea to fix this. It is an aim to make these cmdlets as compatible as possible to the JSON ones
Just bumped into this myself, was rather confused and kept checking different YAML linters to see if I was doing anything wrong in my YAML.
ConvertTo-YAML (get-content 'MyPath\test.txt')
... produces ...
is this wrong?
Aargh. Caught out by the markdown. Read those as dashes
This can be worked around by using
-Raw
on theGet-Content
Cmdlet, but it would be nice if the Cmdlets would behave the same as the original ones for Json, Csv and Xml, which seem to have no issue withstring[]
as returned fromGet-Content
.