Skip to content

Commit 4ea8c07

Browse files
Refactor Import-PSModule.ps1 to remove Write-Host for command output; streamline command listing for improved clarity.
1 parent 5b70ce5 commit 4ea8c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Import-PSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
$availableModules | Select-Object Name, Version, Path | Sort-Object Name | Format-Table -AutoSize | Out-String
4040
Write-Host ' - List commands'
4141
$commands = Get-Command -Module $moduleName -ListImported
42-
Write-Host (Get-Command -Module $moduleName -ListImported | Format-Table -AutoSize | Out-String)
42+
Get-Command -Module $moduleName -ListImported | Format-Table -AutoSize | Out-String
4343

4444
if ($moduleName -notin $commands.Source) {
4545
throw 'Module not found'

0 commit comments

Comments
 (0)