TestModule-Chelnak.psm1

$Public = Get-ChildItem -Path "$($PSScriptRoot)\Functions\Public\*.ps1" -Verbose:$VerbosePreference

foreach($Function in $Public) {

    try {

        . $Function.FullName

    }
    catch {

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

    }

}

Export-ModuleMember -Function $($Public | Select-Object -ExpandProperty BaseName) -Verbose:$VerbosePreference

$ExecutionContext.SessionState.Module.OnRemove = {

    Remove-Variable -Name GitHubSessionInformation -Force -ErrorAction SilentlyContinue

}