LemonAI.psm1

<#
    .SYNOPSIS
        This PowerShell module, named LemonAI, provides functions for Ollama & AI Chats.
 
    .NOTES
        Module : LemonAI
        Author : Dio Nomel
#>

#Unblock files
Get-ChildItem -Path $PSScriptRoot | Unblock-File

# Get all function definition files.
$functions = @( Get-ChildItem -Path $PSScriptRoot\functions\*.ps1 -ErrorAction Ignore )

# Dot source the files
foreach ($import in $functions) {
    Try {
        . $import.fullname
    } Catch {
        Write-Error -Message "Failed to import function $($import.fullname): $_"
    }
}