]> apps.delaporte.us Git - dotfiles.git/blobdiff - psmodules/drivespace.psm1
Notes on CLI setup
[dotfiles.git] / psmodules / drivespace.psm1
index 361ee23d6eda38ba78afd264685f5804f85ec5a5..b946f86d9f71531db914e71ae828d917e07aef4d 100644 (file)
@@ -5,7 +5,10 @@ Find 10 largest files on the C drive.
 
 #>
 function Show-LargeFiles() {
-        Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName
+       param(
+               [int]$Max=10
+       )
+       Get-ChildItem c:\ -r| sort -descending -property length | select -first $Max name, Length, FullName
 }
 
 <#
@@ -37,6 +40,5 @@ $Files = Get-Job -Name "FileCollection" | Receive-Job
 Get-Job -Name "FileCollection" | Remove-Job
 }
 
-Export-ModuleMember -Function Show-Drivespace 
-Export-ModuleMember -Function Show-DrivespacePretty
+Export-ModuleMember -Function Show-DriveSpace 
 Export-ModuleMember -Function Show-LargeFiles