Skip to content

Commit

Permalink
Merge pull request #767 from pnp/pkbullock-patch-2
Browse files Browse the repository at this point in the history
Update report-matrix.ps1
  • Loading branch information
pkbullock authored Oct 31, 2024
2 parents 8693aae + 629f071 commit 6b76cf7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docfx/report-matrix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ $files = Get-ChildItem -Path $dir -Recurse -Include README.md
Write-Host "$($files.Length) found"

"# Matrix of Sample Distribution by Tool" | Out-File $ReportFile -Force
"| Sample | PnP<br />PowerShell | Cli for Microsoft 365<br />PowerShell | Cli for Microsoft 365<br />Bash | Graph<br />SDK | SPO Management<br />Shell |" | Out-File $reportFile -Append
"|------|:--------:|:--------:|:----------:|:-----------:|:--------:|" | Out-File $reportFile -Append


$matrixRows = @()
$sampleCount = 0
Expand Down Expand Up @@ -94,7 +93,6 @@ $files | Foreach-Object {
$GraphSDK = $false
$SPOMS = $false


#Write-Host $content
$matchResults = $content | Select-String "#tab/" -AllMatches
if($matchResults){
Expand Down Expand Up @@ -150,6 +148,9 @@ $files | Foreach-Object {
-f $PnPPSCount, $CLIPSCount, $CLIBashCount, $GraphSDKCount, $SPOMSCount, $AllTabs `
| Out-File $reportFile -Append

"| Sample | PnP<br />PowerShell | Cli for Microsoft 365<br />PowerShell | Cli for Microsoft 365<br />Bash | Graph<br />SDK | SPO Management<br />Shell |" | Out-File $reportFile -Append
"|------|:--------:|:--------:|:----------:|:-----------:|:--------:|" | Out-File $reportFile -Append

$matrixRows | ForEach-Object{

$row = "| {0} | {1} | {2} | {3} | {4} | {5} |" -f $_.Link, (DispTick $_.PnPPS), (DispTick $_.CLIPS), (DispTick $_.CLIBash), (DispTick $_.GraphSDK), (DispTick $_.SPOMS)
Expand All @@ -160,4 +161,4 @@ $matrixRows | ForEach-Object{

# Counts
$row = "| - | {0} | {1} | {2} | {3} | {4} |" -f $PnPPSCount, $CLIPSCount, $CLIBashCount, $GraphSDKCount, $SPOMSCount
$row | Out-File $reportFile -Append
$row | Out-File $reportFile -Append

0 comments on commit 6b76cf7

Please sign in to comment.