EZOut

EZOut lets you take the toughness out of writing Types and Formats files in PowerShell.

Download
EZOut helps you to control the look of output from content in PowerShell.

EZOut simplifies the process of making Format XML, and trying that XML out in PowerShell.

You can use EZOut to change formatting and type information on the fly, or use it to help author files to use with your PowerShell modules.

Creates a format XML that will be used to display a type.

Format XML is used by Windows PowerShell to determine how objects are displayed.

Most items in PowerShell that come from built-in cmdlets make use of formatters in some
way or another. Write-FormatView simplifies the creation of formatting for a type.


You can format information in three major ways in PowerShell:
- As a table
- As a list
- As a custom action

Write-FormatView supports displaying information in any of these ways. This display
will be applied to any information that would be displayed to the user (or piped into
an Out- cmdlet) that has the typename you specify. A typename can be anything you like,
and it can be set in a short piece of PowerShell script:

$object.psObject.Typenames.Clear()
$null = $object.psObject.TypeNames.Add("MyTypeName").

Since it is so simple to change the type names, it's equally simple to make your own way to
display data, and to write functions that leverage the formatting system in PowerShell to help
you write the information. This can streamline your use of PowerShell, and open up many
new possibilities.

PowerShell has a robust, extensible types system. With Write-TypeView, you can easily add extended type information to any type.
This can include:
The default set of properties to display (-DefaultDisplay)
Sets of properties to display (-PropertySet)
Serialization Depth (-SerializationDepth)
Virtual methods or properties to add onto the type (-ScriptMethod, -ScriptProperty and -NoteProperty)
Method or property aliasing (-AliasProperty)

Code Walkthrus

See each step online, and try it on your computer.