Misc/Get-NewContainerName.ps1
# REMOVE IN FUTURE RELEASE function Get-NewContainerName { Param( [Parameter(Mandatory=$false)] [string] $SourcePath = (Get-Location), [Parameter(Mandatory=$false)] [string]$ContainerName = $null ) if ($null -eq $ContainerName -or $ContainerName -eq "") { $ContainerName = Get-EnvironmentKeyValue -KeyName 'name' -SourcePath $SourcePath } if ($null -eq $ContainerName -or $containerName -eq "") { $ContainerName = Get-ContainerFromLaunchJson -LaunchJsonPath (Join-Path $SourcePath '.vscode\launch.json') } if ($null -eq $ContainerName -or $ContainerName -eq "") { $ContainerName = 'agentbuild' } $ContainerName } |