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
All checks were successful
build / build-test (push) Successful in 1m31s
This commit is contained in:
parent
7026a0d556
commit
ead4c721d4
2 changed files with 28 additions and 0 deletions
15
full_script.ps1
Normal file
15
full_script.ps1
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue