https://github.com/shihanng/bgist
Upload image to gist.
https://github.com/shihanng/bgist
gist github go-git golang
Last synced: about 1 month ago
JSON representation
Upload image to gist.
- Host: GitHub
- URL: https://github.com/shihanng/bgist
- Owner: shihanng
- License: mit
- Created: 2018-07-26T13:47:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T05:17:40.000Z (over 7 years ago)
- Last Synced: 2025-09-11T04:36:08.824Z (9 months ago)
- Topics: gist, github, go-git, golang
- Language: Go
- Homepage:
- Size: 2.28 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**bgist** create a new [gist](https://gist.github.com/)
on your GitHub and uploads the binary files to the newly created gist.
Based on the idea in https://remarkablemark.org/blog/2016/06/16/how-to-add-image-to-gist/.
## Installation
```
$ go get github.com/shihanng/bgist
```
## Usage
Need [GitHub's personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
The require scope is "gist".
```
Usage:
bgist [flags]
Examples:
BGIST_GITHUB_ACCESS_TOKEN=secret bgist -d "a demo" photo-1.png photo-2.jpg
Flags:
-d, --description string Description of the gist
-h, --help help for bgist
--public Publish as public gist
```