Public/Version.ps1
function Version { param( [parameter(Mandatory, Position = 0)] [string]$Version ) begin { Write-Debug -Message "Entering: $($PSCmdlet.MyInvocation.MyCommand.Name)" Assert-InWatchmen -Command $PSCmdlet.MyInvocation.MyCommand.Name } process { $global:watchmen.ThisTest.Version = $Version } end { Write-Debug -Message "Exiting: $($PSCmdlet.MyInvocation.MyCommand.Name)" } } |