Created
July 15, 2014 20:26
-
-
Save loganhasson/5dc3304595172c768f89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gho () { | |
if [ -n "$3" ]; then | |
private=$("false") | |
else | |
private=$("true") | |
fi | |
curl -s -u 'username:apikey' https://api.github.com/orgs/"$2"/repos -d "{\"name\":\"$1\",\"private\":\"$private\"}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment