This is a port of gist in Go
-
[Create a personal access token] https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)
-
Set the
GITHUB_TOKEN
environment variable to the valueusername:token
, or writeusername:token
to~/.gist
file.
- Get the pre-built Linux (x86_64) built or download and build it yourself.
gister
provides 3 optional CLI arguments.
-public
: Iftrue
, the gist created will be public. Defaults totrue
.-d
: Provide a description. Defaults toThis is a gist
.-anonymous
: Iftrue
, the gist created will be anonymous. Setfalse
to create a gist for a user. Defaults totrue
.
- Run
gister --h
for the available options and usage.