Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 722 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 722 Bytes

bgist create a new gist 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. 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