Compare-CommandHelp
Compares two CommandHelp objects and produces a detailed report showing the differences.
構文
__AllParameterSets
Compare-CommandHelp
[-ReferenceCommandHelp] <CommandHelp>
[-DifferenceCommandHelp] <CommandHelp>
[-PropertyNamesToExclude <string[]>]
[<CommonParameters>]
説明
Compare-CommandHelp is a troubleshooting tool that compares two CommandHelp objects and produces a
detailed report showing the differences. For example, you can use this to compare objects imported
from different sources, such as two different versions of Markdown files.
例
Example 1
$refcmd = Import-MarkdownCommandHelp -Path .\v1\Microsoft.PowerShell.PlatyPS\Compare-CommandHelp.md
$diffcmd = Import-MarkdownCommandHelp -Path .\v2\Microsoft.PowerShell.PlatyPS\Compare-CommandHelp.md
Compare-CommandHelp -ReferenceCommandHelp $refcmd -DifferenceCommandHelp $diffcmd > .\diff.log
パラメーター
-DifferenceCommandHelp
The CommandHelp object to compare against the reference object.
パラメーターのプロパティ
| 型: | Microsoft.PowerShell.PlatyPS.Model.CommandHelp |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | 1 |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-PropertyNamesToExclude
A list of one or more property names to exclude from the comparison.
パラメーターのプロパティ
| 型: | String[] |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
-ReferenceCommandHelp
The base CommandHelp object to be compared to the difference object.
パラメーターのプロパティ
| 型: | Microsoft.PowerShell.PlatyPS.Model.CommandHelp |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | 0 |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.