Skip to content

zcong1993/gist

Repository files navigation

gist

Go Report Card CircleCI Build Status wercker status Build Status

gist cli in go

Usage

download the package rename to gist(if not in windows) and put in any $PATH folder.

# in your work folder
$ gist [flags] [files...]
# example
# set token
$ gist -s <your token>
# create gist with file1 and file2
$ gist file1 file2
# will return gist web link
# create public gist
$ gist -p file
# add your custom description
$ gist -d="your custom description"

You can get your gist token here https://github.com/settings/tokens/new, remember to select gist scope.

Screenshot

gist screenshot

Build

$ git clone https://github.com/zcong1993/gist.git
$ cd gist
$ go build gist.go
# then move the output to your `$PATH` folder.

License

MIT © zcong1993