Skip to content

Commit e165fcd

Browse files
Enhance logging in Install-PSModule function by replacing LogGroup with Write-Host for better visibility in module import process
1 parent a097f53 commit e165fcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/Helpers/Helpers.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ function Install-PSModule {
314314
$PSModulePath = $env:PSModulePath -split [System.IO.Path]::PathSeparator | Select-Object -First 1
315315
$codePath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force | Select-Object -ExpandProperty FullName
316316
Copy-Item -Path "$Path/*" -Destination $codePath -Recurse -Force
317-
LogGroup 'Importing module' {
318-
Import-Module -Name $moduleName -Verbose
319-
}
317+
Write-Host '::group::Importing module'
318+
Import-Module -Name $moduleName -Verbose
319+
Write-Host '::endgroup::'
320320
if ($PassThru) {
321321
return $codePath
322322
}

0 commit comments

Comments
 (0)