Add secret provider functionality and enhance configuration data resolution
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
$PrivatePath = Join-Path -Path $PSScriptRoot -ChildPath "Private"
|
||||
$ProviderPath = Join-Path -Path $PSScriptRoot -ChildPath "Providers"
|
||||
$PublicPath = Join-Path -Path $PSScriptRoot -ChildPath "Public"
|
||||
|
||||
$Private = @(Get-ChildItem -Path $PrivatePath -Filter "*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
|
||||
$Providers = @()
|
||||
if(Test-Path -Path $ProviderPath){
|
||||
$Providers = @(Get-ChildItem -Path $ProviderPath -Filter "Provider.*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
|
||||
}
|
||||
$Public = @(Get-ChildItem -Path $PublicPath -Filter "*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
|
||||
|
||||
foreach($File in @($Private + $Public)){
|
||||
foreach($File in @($Private + $Providers + $Public)){
|
||||
. $File.FullName
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user