Files
runner-images/images/win/scripts/Installers/Validate-CloudFoundryCli.ps1
Shady Ibraheem f396818e23 Inital commit.
2019-11-15 15:38:01 -05:00

29 lines
685 B
PowerShell

################################################################################
## File: Validate-CloudFoundryCli.ps1
## Desc: Validate Cloud Foundry CLI
################################################################################
if (Get-Command -Name 'cf')
{
Write-Host "cf on path"
}
else
{
Write-Host 'cf is not on path'
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "Cloud Foundry CLI"
if( $(cf version) -match '\d+\.\d+\.\d+' )
{
$version = $Matches[0]
}
$Description = @"
_Version:_ $version<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description