DEV Community

Discussion on: Grab Your GitHub URLs Without Leaving The Command Line

Collapse
 
danielma profile image
Daniel Ma

Cool snippet! For tools like this, I usually use jq.

For example, you can accomplish the same goal with this snippet, treating the response as JSON instead of dealing with it as a blob of text.

curl -s -H 'Authorization: token $GHUB_TOKEN' \
    https://api.github.com/user/repos | jq -r '.[].clone_url'
Collapse
 
thatzacdavis profile image
Zachary Davis

That's a really cool extension to this. Thanks for sharing!