Skip to content

Commit

Permalink
Switched to using classic view
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Apr 1, 2024
1 parent 9ed38b6 commit 6d3bda6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions powershell/public/Invoke-Maester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ Function Invoke-Maester {
"@
Write-Host -ForegroundColor Green $motd

$oldStyle = $PSStyle.Progress.Style
$PSStyle.Progress.View = 'Classic' # Set to classic to show progress consistently across platforms

Clear-ModuleVariable # Reset the graph cache and urls to avoid stale data

$isMail = $null -ne $MailRecipient
Expand Down Expand Up @@ -277,6 +280,8 @@ Function Invoke-Maester {
Get-IsNewMaesterVersionAvailable | Out-Null

Write-Progress -Activity "🔥 Completed tests" -Completed # Clear progress bar

$PSStyle.Progress.Style = $oldStyle # Reset the progress style
if ($PassThru) {
return $maesterResults
}
Expand Down

0 comments on commit 6d3bda6

Please sign in to comment.