src/Public/global.ps1
function Import-RedkiteConfig { <# .Description Loads a json files of settings into environments. Useful when running locally - on the build server these would be expected to be there by default #> [CmdletBinding()] param ( [Parameter()] [string] $ConfigFile="./config.json" ) $Config = (Get-Content -Path $ConfigFile | ConvertFrom-Json) SetEnvironmentVariablesFromObject $Config } |