You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or maybe ConvertTo-WikiStorage should convert it to string. Or at least somewhere in the help documentation mentioning Out-String for ConvertTo-WikiTable.
The text was updated successfully, but these errors were encountered:
Decided to Out-String the output of ConvertTo-WikiTable. The previous output was an array of row strings, which wasn't intended. This way also still allows multiple tables to be piped into ConvertTo-WikiStorageFormat at once, if desired.
Added an example to address this common use case, which I had already referenced in the description.
It seems like ConvertTo-WikiTable should return a string instead of an array.
Get-Service | select name,status -First 3 | ConvertTo-WikiTable | ConvertTo-WikiStorageFormat
I get multiple tables for each row:
I tried a lot of combinations to try to get one table but finally figured out out-string fixes it:
Get-Service | select name,status -First 3 | ConvertTo-WikiTable | out-string | ConvertTo-WikiStorageFormat
Or maybe ConvertTo-WikiStorage should convert it to string. Or at least somewhere in the help documentation mentioning Out-String for ConvertTo-WikiTable.
The text was updated successfully, but these errors were encountered: