@@ -3,8 +3,8 @@ if ($PSVersionTable.PSEdition -ne 'Core') {
33}
44
55# Get all .ps1 files in the 'Public' directory and dot-source them
6- $PublicFunctions = Get-ChildItem - Path (Join-Path $PSScriptRoot ' Public' ) - Filter ' *.ps1' - File
7- $PrivateFunctions = Get-ChildItem - Path (Join-Path $PSScriptRoot ' Private' ) - Filter ' *.ps1' - File
6+ $PublicFunctions = Get-ChildItem - Verbose - Path (Join-Path $PSScriptRoot ' Public' ) - Filter ' *.ps1' - File - Recurse
7+ $PrivateFunctions = Get-ChildItem - Path (Join-Path $PSScriptRoot ' Private' ) - Filter ' *.ps1' - File - Recurse
88
99foreach ($File in $PublicFunctions ) {
1010 . $File.FullName
@@ -15,22 +15,22 @@ foreach ($File in $PrivateFunctions) {
1515}
1616
1717Export-ModuleMember - Function @ (
18- # Actions.ps1
19- ' Update-PiHoleActionsGravity' , ' Invoke-PiHoleFlushNetwork' `
20- # Authentication.ps1
18+ # Actions
19+ ' Update-PiHoleActionsGravity' , ' Invoke-PiHoleFlushNetwork' , ' Restart-PiHoleDnsService ' `
20+ # Authentication
2121 ' Remove-PiHoleCurrentAuthSession' , ' Get-PiHoleCurrentAuthSession' , ' Remove-PiHoleAuthSession' , `
22- # GroupManagement.ps1
22+ # GroupManagement
2323 ' Get-PiHoleGroup' , ' New-PiHoleGroup' , ' Update-PiHoleGroup' , ' Remove-PiHoleGroup' , `
24- # DnsControl.ps1
24+ # DnsControl
2525 ' Get-PiHoleDnsBlockingStatus' , ' Set-PiHoleDnsBlocking' , `
26- # Config.ps1
27- ' Get-PiHoleConfig' , ' Get-PiHoleCurrentAuthSession ' , ' Remove-PiHoleAuthSession ' , `
28- # Padd.ps1
26+ # Config
27+ ' Get-PiHoleConfig' , `
28+ # Padd
2929 ' Get-PiHolePadd' , `
30- # Metrics.ps1
30+ # Metrics
3131 ' Get-PiHoleStatsRecentBlocked' , ' Get-PiHoleStatsQueryType' , ' Get-PiHoleStatsTopDomain' , ' Get-PiHoleStatsSummary' , ' Get-PiHoleStatsTopClient' `
32- # ListManagement.ps1
32+ # ListManagement
3333 ' Get-PiHoleList' , ' Search-PiHoleListDomain' , ' Add-PiHoleList' , ' Remove-PiHoleList' , `
34- # FTLInformation.ps1
34+ # FTLInformation
3535 ' Get-PiHoleInfoMessage' , ' Get-PiHoleInfoHost'
3636)
0 commit comments