PSDataKit.psm1

# Implement your module commands in this script.


# Export only the functions using PowerShell standard verb-noun naming.
# Be sure to list each exported functions in the FunctionsToExport field of the module manifest file.
# This improves performance of command discovery in PowerShell.


$FoldersToImport = @('classes', 'private', 'includes', 'internal', 'tools', 'functions', 'public')
foreach ($folder in $FoldersToImport)
{
    $root = Join-Path -Path $PSScriptRoot -ChildPath $folder

    if (Test-Path -Path $root)
    {
        Get-ChildItem -Path $root -Filter *.ps1 -Recurse |
            Where-Object { $_.name -NotLike '*.task.ps1'} |
            ForEach-Object {
            . $_.FullName
            Export-ModuleMember -Function ($_.FullName).basename
        }
    }
}