To list repositories you could use the github CLI:
gh repo list anyproto
The output is pretty, containing the repository name, description, update data and if it's a fork.
You can also use curl
:
curl -sX GET -H "Authorization: token ${GH_TOKEN}" https://api.github.com/orgs/anyproto/repos | \
jq .[].html_url | \
cut -d\" -f2
The API output is a JSON. I use jq
to extract the HTTP URL for each repository (you could also get the SSH one if you want). Then I just get the text from within quotes with the cut
command.
For the anyproto organization (makers of AnyType), I get the following via curl
:
https://github.com/anyproto/protobuf
https://github.com/anyproto/html-to-markdown
https://github.com/anyproto/go-slip21
https://github.com/anyproto/go-slip10
https://github.com/anyproto/go-threads
https://github.com/anyproto/go-log
https://github.com/anyproto/go-gelf
https://github.com/anyproto/ipfs-lite
https://github.com/anyproto/docs
https://github.com/anyproto/go-ds-badger3
https://github.com/anyproto/amplitude-go
https://github.com/anyproto/badger
https://github.com/anyproto/go-multiaddr
https://github.com/anyproto/go-naturaldate
https://github.com/anyproto/gosigar
https://github.com/anyproto/go-libp2p-pubsub-rpc
https://github.com/anyproto/roadmap
https://github.com/anyproto/SourceryGenPlugin
https://github.com/anyproto/zeroconf
https://github.com/anyproto/anytype-ts
https://github.com/anyproto/open
https://github.com/anyproto/go-chash
https://github.com/anyproto/any-sync
https://github.com/anyproto/anytype-swift-codegen
https://github.com/anyproto/any-sync-node
https://github.com/anyproto/any-sync-filenode
https://github.com/anyproto/any-sync-coordinator
https://github.com/anyproto/any-sync-tools
https://github.com/anyproto/anytype-heart
https://github.com/anyproto/anytype-swift
This is cool, but you need to be careful that there's a pagination in place, with 100 items per page!
HTH,
Member discussion: