-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.psm1
More file actions
21 lines (18 loc) · 748 Bytes
/
module.psm1
File metadata and controls
21 lines (18 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[cmdletbinding()]
param()
Write-Verbose "This psm1 is replaced in the build output. This file is only used for debugging."
Write-Verbose $PSScriptRoot
Write-Verbose 'Import everything in sub folders'
foreach ($folder in @('Private', 'Public'))
{
$root = Join-Path -Path $PSScriptRoot -ChildPath $folder
if (Test-Path -Path $root)
{
Write-Verbose "processing folder $root"
$files = Get-ChildItem -Path $root -Filter *.ps1 -Recurse
# dot source each file
$files | where-Object { $_.name -NotLike '*.Tests.ps1'} |
ForEach-Object {Write-Verbose $_.basename; . $_.FullName}
}
}
Export-ModuleMember -function (Get-ChildItem -Path "$PSScriptRoot\public\*.ps1").basename