~kris/dots

srice

ref: 4471d164e01750db50f2d73d2a7c8af0e2318591 srice/.local/bin/srht-repos -rwxr-xr-x 406 bytes
4471d164 — Kris Yotam wallpapermenu: pass -no-config so ambient rofi theme can't override the picker 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/bin/sh
# srht-repos -- list all sr.ht repositories
set -eu

TOKEN=$(cat ~/.config/srht/token)

curl -s --oauth2-bearer "$TOKEN" -H 'Content-Type: application/json' \
  -d '{"query": "{ me { repositories { results { name visibility description updated } cursor } } }"}' \
  https://git.sr.ht/query | jq -r '.data.me.repositories.results[] | "\(.name)\t\(.visibility)\t\(.description // "")"' | column -t