Boolman / gistclient

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install:

pip install git+http://github.com/boolman/gistclient

Usage:

List gists of specified user

$ python gists.py ListGists --user boolman
https://api.github.com/gists/8f54862da4d40c5206c168108b6c073b

List files/view content of files in specified Gist

$ python gists.py ViewGist --url https://api.github.com/gists/8f54862da4d40c5206c168108b6c073b                        
bash-script: {"content": "#!/bin/bash\n\n\necho ${foo}\n", "raw_url": "https://gist.githubusercontent.com/Boolman/8f54862da4d40c5206c168108b6c073b/raw/3eba204f9269ebf907add96f951ce82f907d7a9e/bash-script", "type": "text/plain", "size": 26, "language": "Shell", "filename": "bash-script", "truncated": false}
$ python gists.py ViewGist --url https://api.github.com/gists/8f54862da4d40c5206c168108b6c073b bash-script content
#!/bin/bash


echo ${foo}

Add Gist

$ python gists.py AddGist --filepath foobar.sh --user boolman

Delete Gist

$ python gists.py DelGist --url https://api.github.com/gists/8f54862da4d40c5206c168108b6c073b

About

License:MIT License


Languages

Language:Python 100.0%