internal/TEPP/convert-object.Tepp.ps1

1
2
3
4
5
6
7
Register-PSFTeppScriptblock -Name psutil-convert-object-from -ScriptBlock {
    [PSUtil.Object.ObjectHost]::Conversions.Values.From | Select-Object -Unique
}

Register-PSFTeppScriptblock -Name psutil-convert-object-to -ScriptBlock {
    [PSUtil.Object.ObjectHost]::Conversions.Values | Where-Object From -EQ $fakeBoundParameter.From | Expand-PSUObject -Name To
}