19 lines
347 B
Bash
19 lines
347 B
Bash
#!/bin/zsh
|
|
|
|
function self-col(){
|
|
if [ -n "$1" ];then
|
|
t=`curl -sL "$pds/xrpc/com.atproto.repo.listRecords?repo=$handle&collection=$1"`
|
|
echo $t|jq .
|
|
exit
|
|
fi
|
|
col=(
|
|
ai.syui.game
|
|
ai.syui.system
|
|
)
|
|
e=${col[@]: -1}
|
|
for i in $col; do
|
|
t=`curl -sL "$pds/xrpc/com.atproto.repo.listRecords?repo=$handle&collection=$i"`
|
|
echo $t|jq .
|
|
done
|
|
}
|