hurl/bin/environment.ps1

24 lines
484 B
PowerShell
Raw Normal View History

2022-12-28 12:20:27 +03:00
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
2023-04-05 12:07:50 +03:00
write-host -foregroundcolor Cyan "----- context -----"
# get windows infos
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer
2023-04-05 12:07:50 +03:00
# get pwsh infos
2022-09-28 18:41:43 +03:00
(Get-Variable PSVersionTable -ValueOnly).PSVersion
# get vcpkg infos
vcpkg --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
# get python infos
python -V
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
# get cargo info
cargo --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
2023-04-05 12:07:50 +03:00