Modules/businessdev.ALbuild.Core/Private/Get-ALbuildConfigPath.ps1
|
function Get-ALbuildConfigPath { <# .SYNOPSIS Resolves the path of the persisted ALbuild configuration file. .DESCRIPTION Internal helper. Honours the ALBUILD_CONFIG environment variable; otherwise uses a per-user location under the platform's application-data folder. #> [CmdletBinding()] [OutputType([string])] param() if (-not [string]::IsNullOrWhiteSpace($env:ALBUILD_CONFIG)) { return $env:ALBUILD_CONFIG } $dir = Join-Path -Path ([System.Environment]::GetFolderPath('ApplicationData')) -ChildPath 'ALbuild' return Join-Path -Path $dir -ChildPath 'config.json' } |