Skip to content

Commit cd81fbf

Browse files
committed
Removed Invoke-SpectreCommandWithStatus during module retrieval to fix broken menu
1 parent 58d9155 commit cd81fbf

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

ModuleExplorer/ModuleExplorer.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'ModuleExplorer.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.1.5'
15+
ModuleVersion = '0.1.6'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core'

ModuleExplorer/functions/Show-ModuleExplorer.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,18 @@ function Show-ModuleExplorer {
7979
$moduleQuery.Name = $Filter
8080
}
8181

82-
Invoke-SpectreCommandWithStatus -ScriptBlock { $availableModules = Get-Module @moduleQuery |
82+
# Invoke-SpectreCommandWithStatus -ScriptBlock { $availableModules = Get-Module @moduleQuery |
83+
# Select-Object Name, Version, Path, ModuleBase, RootModule,
84+
# @{Name = 'Prefix'; Expression = { ($_.Name -split '\.')[0] } } |
85+
# Sort-Object Name
86+
# $availableModules
87+
# } -Title "Loading PowerShell Modules..." -Spinner "Shark"
88+
89+
$availableModules = Get-Module @moduleQuery |
8390
Select-Object Name, Version, Path, ModuleBase, RootModule,
8491
@{Name = 'Prefix'; Expression = { ($_.Name -split '\.')[0] } } |
8592
Sort-Object Name
86-
$availableModules | Out-Null
87-
} -Title "Loading PowerShell Modules..." -Spinner "Shark"
93+
$availableModul
8894

8995
$categories = $availableModules |
9096
Group-object Prefix |

0 commit comments

Comments
 (0)