From acaa022c09f8631ab7ec033c86efeb8107d61272 Mon Sep 17 00:00:00 2001 From: FlorianSf Date: Tue, 16 Jul 2024 14:05:59 +0200 Subject: [PATCH] Suppress warnings from importing dependencies so it won't be redirected to UI for #13 --- AptecoPSFramework/public/Import-Lib.ps1 | 2 +- AptecoPSFramework/public/Plugins/Import-Plugin.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AptecoPSFramework/public/Import-Lib.ps1 b/AptecoPSFramework/public/Import-Lib.ps1 index 9b94670..658ee3b 100644 --- a/AptecoPSFramework/public/Import-Lib.ps1 +++ b/AptecoPSFramework/public/Import-Lib.ps1 @@ -31,7 +31,7 @@ Function Import-Lib { #Set-Location $localLibFolderItem.Parent.FullName # Import the dependencies - Import-Dependencies -LoadWholePackageFolder -LocalPackageFolder $localLibFolder #$localLibFolderItem.name + Import-Dependencies -LoadWholePackageFolder -LocalPackageFolder $localLibFolder -SuppressWarnings #$localLibFolderItem.name # Go back, if needed #Set-Location -Path $currentLocation.Path diff --git a/AptecoPSFramework/public/Plugins/Import-Plugin.ps1 b/AptecoPSFramework/public/Plugins/Import-Plugin.ps1 index 706b074..5cce5e0 100644 --- a/AptecoPSFramework/public/Plugins/Import-Plugin.ps1 +++ b/AptecoPSFramework/public/Plugins/Import-Plugin.ps1 @@ -245,6 +245,7 @@ Write-Log "Loading lib folder from: '$( $localLibFolder )'" $dependencyParams.Add("LoadWholePackageFolder", $true) $dependencyParams.Add("LocalPackageFolder", $localLibFolder) + $dependencyParams.Add("SuppressWarnings", $true) #$localLibFolderItem.fullname