Skip to content

Commit c1affff

Browse files
committed
Show which Perls we have installed with the -List option
1 parent 49fe9d5 commit c1affff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

psperl.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ elseif ($install) {
112112
}
113113
elseif ($switch) { $psperl.Use($switch, $true); }
114114
elseif ($use) { $psperl.Use($use, $false); }
115+
elseif ($list) {
116+
Write-Host("Perls installed on your system: ");
117+
Write-Host("");
118+
ForEach ($dir in (Get-ChildItem -Path "$($env:PSPERL_ROOT)\_perls" -Directory)) {
119+
Write-Host(" $($dir.Name)");
120+
}
121+
}
115122
# To turn on Debugging, $global:DebugPreference = 'Continue'
116123
# To turn off Debugging, $global:DebugPreference = 'SilentlyContinue'
117124

0 commit comments

Comments
 (0)