Add update.ps1 and full_script.ps1: PS counterparts of the server scripts, run in the repo folder; pull my_cars.json from moria before analysis (moria stays the single source of truth; -NoSync skips)
All checks were successful
build / build-test (push) Successful in 1m31s

This commit is contained in:
Jan-Peter von Hunnius 2026-08-31 07:23:59 +02:00
parent 7026a0d556
commit ead4c721d4
2 changed files with 28 additions and 0 deletions

15
full_script.ps1 Normal file
View file

@ -0,0 +1,15 @@
param([switch]$NoSync)
$ErrorActionPreference = 'Stop'
Set-Location $PSScriptRoot
if (-not $NoSync) {
Write-Host "Syncing my_cars.json from moria ..."
scp -q jan@192.168.1.2:Development/top_drives/my_cars.json .\my_cars.json
if ($LASTEXITCODE -ne 0) { throw "my_cars.json sync failed" }
}
Remove-Item .\*.csv -ErrorAction SilentlyContinue
Write-Host "Fetching repo data (cars, tracks, times - first run takes a while) ..."
cargo run --release --bin records -- fetch
cargo run --release --bin records -- all --min-count 10 --max-wishlist 305
Write-Host "Done. CSVs are in $PSScriptRoot"

13
update.ps1 Normal file
View file

@ -0,0 +1,13 @@
param([switch]$NoSync)
$ErrorActionPreference = 'Stop'
Set-Location $PSScriptRoot
if (-not $NoSync) {
Write-Host "Syncing my_cars.json from moria ..."
scp -q jan@192.168.1.2:Development/top_drives/my_cars.json .\my_cars.json
if ($LASTEXITCODE -ne 0) { throw "my_cars.json sync failed" }
}
Remove-Item .\*.csv -ErrorAction SilentlyContinue
cargo run --release --bin records -- all --min-count 10 --max-wishlist 305
Write-Host "Done. CSVs are in $PSScriptRoot"