-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating EZOut.HelpOut.ps1 (changing import logic) (#51)
- Loading branch information
StartAutomating
authored and
StartAutomating
committed
Jul 25, 2022
1 parent
1028500
commit 127cab1
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
Out-TypeData | ||
------------ | ||
### Synopsis | ||
Takes a series of type views and format actions and outputs a type data XML | ||
|
||
--- | ||
### Description | ||
|
||
Takes a series of type views and format actions and outputs a type data XML | ||
|
||
--- | ||
### Examples | ||
#### EXAMPLE 1 | ||
```PowerShell | ||
# Create a quick view for any XML element. | ||
# Piping it into Out-FormatData will make one or more format views into a full format XML file | ||
# Piping the output of that into Add-FormatData will create a temporary module to hold the formatting data | ||
# There's also a Remove-FormatData and | ||
Write-FormatView -TypeName "System.Xml.XmlNode" -Wrap -Property "Xml" -VirtualProperty @{ | ||
"Xml" = { | ||
$strWrite = New-Object IO.StringWriter | ||
([xml]$_.Outerxml).Save($strWrite) | ||
"$strWrite" | ||
} | ||
} | | ||
Out-FormatData | ||
``` | ||
|
||
--- | ||
### Parameters | ||
#### **TypeXml** | ||
|
||
The Format XML Document. The XML document can be supplied directly, | ||
but it's easier to use Write-FormatView to create it | ||
|
||
|
||
|
||
|Type |Requried|Postion|PipelineInput | | ||
|-------------------|--------|-------|--------------| | ||
|```[XmlDocument]```|true |1 |true (ByValue)| | ||
--- | ||
### Syntax | ||
```PowerShell | ||
Out-TypeData [-TypeXml] <XmlDocument> [<CommonParameters>] | ||
``` | ||
--- | ||
|
||
|