用于操作GitHub Gists API的CLI工具。
pygists的Python项目详细描述
只是一个管理GitHub gist的工具
使用
要列出带有嵌入链接的所有gist,请使用ls
:
$ pygists ls -u your_username -t $GITHUB_TOKEN tomasfarias's GitHub Gist: 6d83bf247790b4116f0575ee230cc4d0 'Just a second test' Created: 2019-06-27 05:22:08 Updated: 2019-07-08 19:57:12 Embed: https://gist.github.com/tomasfarias/6d83bf247790b4116f0575ee230cc4d0.js File | Size (chars) test_2.py | 15 tomasfarias's GitHub Gist: 2be660066572b42a898c87f48b756b89 'Just a test' Created: 2019-06-27 05:20:24 Updated: 2019-07-08 19:56:51 Embed: https://gist.github.com/tomasfarias/2be660066572b42a898c87f48b756b89.js File | Size (chars) test_1.py | 15
要从文件调用中create
获得新的要点:
对update
一个现有的主旨,获取ID并传递它。使用add
,delete
,modify
向主旨添加新文件,删除现有文件并修改现有文件的内容和名称:
$ pygists update c4eb4855f02e77d162a78520da50a0b9 -u tomasfarias -t $GITHUB_TOKEN -d "New description" --add test_new_3.py --modify old_file_name.py=path/to/new_file.py tomasfarias's GitHub Gist: c4eb4855f02e77d162a78520da50a0b9 'New description' Created: 2019-07-08 20:03:56 Updated: 2019-07-08 21:26:47 Embed: https://gist.github.com/tomasfarias/c4eb4855f02e77d162a78520da50a0b9.js File | Size (chars) test_new_3.py | 16 new_file.py | 25
- 项目
标签: