AnthropomorphismDeception.psm1

#
# Script module 'AnthropomorphismDeception'
#
# Author: Sulaiman Alshammari
#

# Ensure minimum execution environment checks
Set-StrictMode -Version Latest

# Get the path of the module directory
$ModuleDir = Split-Path -Parent $MyInvocation.MyCommand.Path

# Import all public script files (.ps1) under Public/
$PublicScripts = Get-ChildItem -Path (Join-Path $ModuleDir "Public") -Filter "*.ps1" -ErrorAction SilentlyContinue
foreach ($Script in $PublicScripts) {
    try {
        . $Script.FullName
    }
    catch {
        Write-Warning "Failed to load script: $($Script.Name). Error: $_"
    }
}

# Import all private script files (.ps1) under Private/ if any
$PrivateScripts = Get-ChildItem -Path (Join-Path $ModuleDir "Private") -Filter "*.ps1" -ErrorAction SilentlyContinue
foreach ($Script in $PrivateScripts) {
    try {
        . $Script.FullName
    }
    catch {
        Write-Warning "Failed to load private script: $($Script.Name). Error: $_"
    }
}

# Export functions explicitly
Export-ModuleMember -Function Show-DeceptionEssay