TALXIS.SDK.Interactive.PowerShell.psm1
#------------------------------------------- ## Load Script Libraries ##------------------------------------------- $functions = @(Get-ChildItem -Path $PSScriptRoot\Functions\*.ps1 -Recurse -ErrorAction SilentlyContinue) $model = @(Get-ChildItem -Path $PSScriptRoot\Model\*.ps1 -Recurse -ErrorAction SilentlyContinue) #Dot source the files Foreach($import in @($model + $functions)) { Try { . $import.fullname Write-Host " IMPORTING SCRIPT: $($import.fullname)" -ForegroundColor Cyan } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } Install-Module TALXIS.SDK.DevOps.CDS.PowerShell -Scope CurrentUser Import-Module TALXIS.SDK.DevOps.CDS.PowerShell Export-ModuleMember -Function $functions.Basename Export-ModuleMember -Function $model.Basename |