PoShSkyTap.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[CmdletBinding()]
param()

Get-ChildItem $PSScriptRoot\ -Recurse -Filter "*.ps1" -Exclude "*.ps1xml" |

    ForEach-Object {

        Try {

            # Dot Source each file
            . $_.FullName

        }

        Catch {

            Write-Error "Failed to import function $($_.FullName)"

        }

    }