$ErrorActionPreference = 'Stop'
if (-not (Get-Command go -ErrorAction SilentlyContinue)) {
  Write-Output '{"app":"service-watch-dashboard-go","status":"skip","reason":"go tidak ditemukan"}'
  exit 0
}
$env:SERVICE_WATCH_SMOKE = '1'
try {
  & go run .
} finally {
  Remove-Item Env:\SERVICE_WATCH_SMOKE -ErrorAction SilentlyContinue
}
