Containers/New-ContainerFromVSCode.ps1
function New-ContainerFromVSCode { Param( [Parameter(Mandatory=$false)] $ContainerName = "", [Parameter(Mandatory=$false)] $SourcePath = (Get-Location), [switch] $SetupTestUsers, [switch] $SkipTestTool ) Write-Host -ForegroundColor Green "Creating new container for current project" if ($ContainerName -eq "") { $ContainerName = Get-ContainerFromLaunchJson } New-Container -ContainerName $ContainerName -LicenseFile (Get-EnvironmentKeyValue -KeyName 'LocalLicenseFile') -alwaysPull -SetupTestUsers:$SetupTestUsers -SkipTestUsers:$SkipTestUsers Get-ALDependencies -ContainerName $ContainerName -Install Write-Host -ForegroundColor Green "Successfully created container $ContainerName" } Export-ModuleMember New-ContainerFromVSCode |