mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-21 01:51:57 +03:00
24 lines
484 B
PowerShell
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 }
|
|
|