Containers/New-ContainerFromVSCode.ps1
function New-ContainerFromVSCode { Param( [Parameter(Mandatory=$false)] $ContainerName = "", [Parameter(Mandatory=$false)] $SourcePath = (Get-Location) ) 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 Get-ALDependencies -ContainerName $ContainerName -Install Write-Host -ForegroundColor Green "Successfully created container $ContainerName" } Export-ModuleMember New-ContainerFromVSCode |