-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
24 lines (24 loc) · 828 Bytes
/
justfile
File metadata and controls
24 lines (24 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Pull and crop license plate images for one or more states.
# Usage:
# just pull-plates # all known states (default: co)
# just pull-plates co
# just pull-plates co tx # when more states are added
pull-plates *states:
#!/usr/bin/env bash
set -euo pipefail
STATES="{{ if states == '' { 'co' } else { states } }}"
for state in $STATES; do
case $state in
co)
echo "==> [co] Scraping Colorado plates..."
cd scrapers && uv run co.py --output-dir ../public
echo "==> [co] Cropping Colorado plates..."
claude -p "/crop-co-plates"
;;
*)
echo "Unknown state shorthand: $state"
echo "Supported: co"
exit 1
;;
esac
done