src/_Get-CciGetConfigPath.ps1
|
function _Get-CciGetConfigPath { [CmdletBinding()] param() if ($env:CCIGET_CONFIG_PATH) { return $env:CCIGET_CONFIG_PATH } # USERPROFILE works on PS 5.1 (Windows) and PS 7 on Windows; fall back to HOME elsewhere. $base = if ($env:USERPROFILE) { $env:USERPROFILE } else { $HOME } return (Join-Path $base '.cciget\config.json') } |