Private/Get-SshImportIdCustomSourceMap.ps1
|
function Get-SshImportIdCustomSourceMap { <# .SYNOPSIS Loads the persisted custom-source prefix -> URL template map. #> [CmdletBinding()] [OutputType([hashtable])] param() $path = Get-SshImportIdConfigPath if (-not (Test-Path -Path $path)) { return @{} } $data = Import-PowerShellDataFile -Path $path if ($data.ContainsKey('Sources')) { return $data.Sources } return @{} } |