PSPoshDad.psm1
Write-Verbose "Importing Functions" # Import everything in these folders foreach($folder in @('private', 'public', 'classes')) { $root = Join-Path -Path $PSScriptRoot -ChildPath $folder if(Test-Path -Path $root) { Write-Verbose "processing folder $root" $files = Get-ChildItem -Path $root -Filter *.ps1 # dot source each file $files | where-Object{ $_.name -NotLike '*.Tests.ps1'} | ForEach-Object{Write-Verbose $_.name; . $_.FullName} } } Export-ModuleMember -Function (Get-ChildItem -Path "$PSScriptRoot\public\*.ps1").basename $module = @{ Author = 'Tanner Schmidt' Description = 'CI CD Test Module' RootModule = 'PSPoshDad.psm1' Path = 'PSPoshDad.psd1' ModuleVersion = '0.0.1' } New-ModuleManifest @module |