Containers/Get-ImageNameForRepo.ps1
function Get-ImageNameForRepo { Param( [ParameteR(Mandatory=$false)] [string] $Version, [Parameter(Mandatory=$false)] [string] $SourcePath = (Get-Location) ) if ($null -eq $Version -or $Version -eq "") { $Version = Get-EnvironmentKeyValue -SourcePath $SourcePath -KeyName 'version' } } function Set-ImageNameForRepo { Param( [Parameter(Mandatory=$false)] [string]$SourcePath = (Get-Location), [Parameter(Mandatory=$true)] [string]$ImageName ) Set-EnvironmentKeyValue -SourcePath $SourcePath -KeyName 'image' -KeyValue $ImageName } |