Skip to content

Commit

Permalink
Add verbose to environment.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
lepapareil committed Apr 2, 2024
1 parent e387e82 commit 57850c8
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions bin/environment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,34 @@ $ErrorActionPreference = 'Stop'

write-host -foregroundcolor Cyan "----- context -----"

# get windows infos
write-host "# os"
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer

# get pwsh infos
write-host "# powershell"
(Get-Variable PSVersionTable -ValueOnly).PSVersion

# get vcpkg infos
write-host "# vcpkg"
(Get-Command -Name vcpkg -CommandType Application).Source
vcpkg --version
if ($LASTEXITCODE) { Throw }

# get python infos
write-host "# python"
(Get-Command -Name python -CommandType Application).Source
python -V
if ($LASTEXITCODE) { Throw }
(Get-Command -Name pip -CommandType Application).Source
pip --version
if ($LASTEXITCODE) { Throw }

write-host "# curl"
(Get-Command -Name curl -CommandType Application).Source
curl --version
if ($LASTEXITCODE) { Throw }

# get cargo info
write-host "# rust"
(Get-Command -Name rustc -CommandType Application).Source
rustc --version
(Get-Command -Name cargo -CommandType Application).Source
cargo --version
if ($LASTEXITCODE) { Throw }

0 comments on commit 57850c8

Please sign in to comment.