PSModuleBuilder.psm1
# $functionFolders = @('Public', 'Internal', 'Classes') # ForEach ($folder in $functionFolders) { # $folderPath = Join-Path -Path $PSScriptRoot -ChildPath $folder # If (Test-Path -Path $folderPath) { # Write-Verbose -Message "Importing from $folder" # $functions = Get-ChildItem -Path $folderPath -Exclude "*.tests.ps1" -Filter '*.ps1' # ForEach ($function in $functions) { # Write-Verbose -Message " Importing $($function.BaseName)" # # . $($function.FullName) # } # } # } # $publicFunctions = (Get-ChildItem -Path "$PSScriptRoot\Public" -Exclude "*.tests.ps1" -Filter '*.ps1').BaseName . Public\Invoke-PsmInit.ps1 Export-ModuleMember -Function "Invoke-PsmInit" |