Skip to content

Commit 3c3418e

Browse files
🩹 [Patch]: Remove forced -Verbose flag (#24)
## Description This pull request includes minor changes to improve the logging output in the PowerShell scripts `init.ps1` and `main.ps1`. The changes focus on removing the redundant `-Verbose` parameter from `Write-Verbose` cmdlets. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 0ae6b73 commit 3c3418e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/init.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ LogGroup 'Init - Export containers' {
195195
$containerFileName = $containerFile | Split-Path -Leaf
196196
LogGroup "Init - Export containers - $containerFileName" {
197197
Format-Hashtable -Hashtable $container
198-
Write-Verbose 'Converting hashtable to PesterContainer' -Verbose
198+
Write-Verbose 'Converting hashtable to PesterContainer'
199199
Export-Hashtable -Hashtable $container -Path "$PSScriptRoot/$containerFileName"
200200
}
201201
}

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ $configuration.Run.Container = @()
2727
$containerFiles = Get-ChildItem -Path $PSScriptRoot -Filter *.Container.* -Recurse | Sort-Object FullName
2828
foreach ($containerFile in $containerFiles) {
2929
$container = & $($containerFile.FullName)
30-
Write-Verbose "Processing container [$container]" -Verbose
31-
Write-Verbose 'Converting hashtable to PesterContainer' -Verbose
30+
Write-Verbose "Processing container [$container]"
31+
Write-Verbose 'Converting hashtable to PesterContainer'
3232
$configuration.Run.Container += New-PesterContainer @container
3333
}
3434
$configuration.Run.Container | ConvertTo-Json

0 commit comments

Comments
 (0)