Gist is a cool tool, here we are going to see how to use it from cli and use it as archiving or sharing utility.
Steps -
- pip install python-gist
- create a personal token at github
- create a .gist file under $HOME with the following content
[gist]
token:
editor:
- Now you are set, use the following -
gist create - creates a new gist
gist edit - edit the files in your gist
gist list - prints a list of your gists
gist clone - clones a gist
gist delete - deletes a gist from github
gist files - prints a list of the files in a gist
gist archive - downloads a gist and creates a tarball
gist content - prints the content of the gist to stdout
gist info - prints detailed information about a gist
gist version - prints the current version
[gist] token:editor:
gist create - creates a new gist gist edit - edit the files in your gist gist list - prints a list of your gists gist clone - clones a gist gist delete - deletes a gist from github gist files - prints a list of the files in a gist gist archive - downloads a gist and creates a tarball gist content - prints the content of the gist to stdout gist info - prints detailed information about a gist gist version - prints the current version
No comments:
Post a Comment