hurl/bin/environment.ps1
2023-04-09 14:03:14 +02:00

24 lines
484 B
PowerShell

Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
write-host -foregroundcolor Cyan "----- context -----"
# get windows infos
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer
# get pwsh infos
(Get-Variable PSVersionTable -ValueOnly).PSVersion
# get vcpkg infos
vcpkg --version
if ($LASTEXITCODE) { Throw }
# get python infos
python -V
if ($LASTEXITCODE) { Throw }
# get cargo info
cargo --version
if ($LASTEXITCODE) { Throw }