From fea6a7aef49cbe163b5b86e3a25da4ed814163e5 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 20 Dec 2019 14:47:34 +0100 Subject: [PATCH 1/4] add parameter "SkipProperties" align with parameters of function Compare-MultipleObjects --- Public/Out-HTMLView.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Public/Out-HTMLView.ps1 b/Public/Out-HTMLView.ps1 index b322df7b..94032762 100644 --- a/Public/Out-HTMLView.ps1 +++ b/Public/Out-HTMLView.ps1 @@ -75,6 +75,7 @@ function Out-HtmlView { [switch] $ImmediatelyShowHiddenDetails, [alias('RemoveShowButton')][switch] $HideShowButton, [switch] $AllProperties, + [switch] $SkipProperties, [switch] $Compare, [alias('CompareWithColors')][switch] $HighlightDifferences, [int] $First, @@ -124,4 +125,4 @@ function Out-HtmlView { Write-Warning 'Out-HtmlView - No data available.' } } -} \ No newline at end of file +} From c283f33ac16013dd8bfd8854768dbeca08c10754 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 20 Dec 2019 14:50:50 +0100 Subject: [PATCH 2/4] add parameter "SkipProperties" align with parameters of function Compare-MultipleObjects --- Public/New-HTMLTable.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Public/New-HTMLTable.ps1 b/Public/New-HTMLTable.ps1 index 0b0a4573..cfbe9d87 100644 --- a/Public/New-HTMLTable.ps1 +++ b/Public/New-HTMLTable.ps1 @@ -48,6 +48,7 @@ function New-HTMLTable { [switch] $ImmediatelyShowHiddenDetails, [alias('RemoveShowButton')][switch] $HideShowButton, [switch] $AllProperties, + [switch] $SkipProperties, [switch] $Compare, [alias('CompareWithColors')][switch] $HighlightDifferences, [int] $First, @@ -585,4 +586,4 @@ function New-HTMLTable { } $AfterTable } -} \ No newline at end of file +} From 9a15fe746f65c7dafb51548bdc874f54173cd09e Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 20 Dec 2019 14:55:51 +0100 Subject: [PATCH 3/4] pass the parameter "SkipProperties" value pass parameter value along to function New-HTMLTable --- Public/Out-HTMLView.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/Out-HTMLView.ps1 b/Public/Out-HTMLView.ps1 index 94032762..ea8637fa 100644 --- a/Public/Out-HTMLView.ps1 +++ b/Public/Out-HTMLView.ps1 @@ -113,7 +113,7 @@ function Out-HtmlView { -FreezeColumnsLeft $FreezeColumnsLeft -FreezeColumnsRight $FreezeColumnsRight ` -FixedHeader:$FixedHeader -FixedFooter:$FixedFooter -ResponsivePriorityOrder $ResponsivePriorityOrder ` -ResponsivePriorityOrderIndex $ResponsivePriorityOrderIndex -PriorityProperties $PriorityProperties -AllProperties:$AllProperties ` - -Compare:$Compare -HighlightDifferences:$HighlightDifferences -First $First -Last $Last ` + -SkipProperties:$SkipProperties -Compare:$Compare -HighlightDifferences:$HighlightDifferences -First $First -Last $Last ` -ImmediatelyShowHiddenDetails:$ImmediatelyShowHiddenDetails -Simplify:$Simplify -HideShowButton:$HideShowButton -CompareReplace $CompareReplace } if ($PassThru) { From d2f7158acfe6f97ac6a08a8a12b6c2b2cc94d6bb Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 20 Dec 2019 15:01:14 +0100 Subject: [PATCH 4/4] pass the parameter "SkipProperties" value pass parameter value along to function New-HTMLTable Compare-MultipleObjects --- Public/New-HTMLTable.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/New-HTMLTable.ps1 b/Public/New-HTMLTable.ps1 index cfbe9d87..304837ef 100644 --- a/Public/New-HTMLTable.ps1 +++ b/Public/New-HTMLTable.ps1 @@ -134,7 +134,7 @@ function New-HTMLTable { } } - $DataTable = Compare-MultipleObjects -Objects $DataTable -Summary -Splitter $Splitter -FormatOutput -AllProperties:$AllProperties -Replace $ReplaceCompare + $DataTable = Compare-MultipleObjects -Objects $DataTable -Summary -Splitter $Splitter -FormatOutput -AllProperties:$AllProperties -SkipProperties:$SkipProperties -Replace $ReplaceCompare if ($HighlightDifferences) { $Highlight = for ($i = 0; $i -lt $DataTable.Count; $i++) {