项目作者: cawfree

项目描述 :
⚡📄 🥯A mini Twitter for your pinned repositories.
高级语言: JavaScript
项目地址: git://github.com/cawfree/autogist.git
创建时间: 2020-01-13T08:25:50Z
项目社区:https://github.com/cawfree/autogist

开源协议:MIT License

下载


autogist

A mini Twitter for your pinned repositories.

🚀 Getting Started

If you haven’t already, you need to create a new GitHub OAuth2 Token with the gist permission. You can add a token to your profile here.

Finally, you need to add this token to your environment variables.

OSX

  1. echo "AUTOGIST_TOKEN <your-token-here>" >> ~/.bash_profile
  2. source ~/.bash_profile

Linux

  1. echo "AUTOGIST_TOKEN <your-token-here>" >> ~/.bashrc
  2. source ~/.bashrc

🗞️ Publishing via the Command Line

Create a Gist

To create a new gist, call autogist with the description (-d) and content (-c) of your gist.

  1. npx autogist -d "gist description" -c "gist content"

Update a Gist

To update a gist, just specify the id (-g) of your gist.

  1. npx autogist -d "gist description" -c "updated content" -g <my-gist-id>

✌️ License

MIT