EZOut
EZOut copied to clipboard
`Export-TypeView`
Synopsis
Exports type definitions to PowerShell scripts
Description
Exports a type definition to a PowerShell Script.
Export-TypeView can export existing extended types to disk.
If provided a -Path, Export-TypeView will export type definitions into the same format used by Import-TypeView.
If -Debug is passed, or no -Path is provided, Export-TypeView will export type definitions into a series of Update-TypeData statements.
Example
# Exports the type definitions in EZOut to a [ScriptBlock]
Get-Module EZOut | Export-TypeData
# Exports the type definitions in all local *.types.ps1xml to a [ScriptBlock]
Get-Item *.types.ps1xml | Export-TypeData
# Exports the type definitions in Posh to a [ScriptBlock]
Get-TypeData -TypeName Posh | Export-TypeData
# Exports the type definitions in Posh to .\Types
Get-TypeData -TypeName Posh | Export-TypeData -Path ".\Types"
Links
No response