Had to do some simple edits for terminal execution (and add /users/ to the URL):
/users/
[[ $1 = "" ]] && echo Error: missing username argument. || curl --silent "https://api.github.com/users/$1/repos?page=1&per_page=100" | npx jq '.[].ssh_url' | while read repo do repo="${repo%\"}" repo="${repo#\"}" echo "$repo" done | sort
Also omitted the username password request, but that's for generally faster usage. :)
Thanks for sharing!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Had to do some simple edits for terminal execution (and add
/users/
to the URL):Also omitted the username password request, but that's for generally faster usage. :)
Thanks for sharing!