gogcli/scripts/live-test.ps1
Peter Steinberger 4f5e474059
fix(cli): improve completion and Windows live testing
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: gagradebnath <salemdebnath@gmail.com>
2026-04-20 16:05:12 +01:00

13 lines
334 B
PowerShell

#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$bashScript = Join-Path $scriptDir "live-test.sh"
if (Get-Command bash -ErrorAction SilentlyContinue) {
& bash $bashScript @args
exit $LASTEXITCODE
}
throw "bash is required to run scripts/live-test.sh on Windows"