gisting
is a command line program for creating and downloading GitHub Gists.
go get github.com/MatevzFa/gisting
$ gisting --token $(cat ~/Documents/.gittoken) create -d "Some random gist" main.go
https://gist.github.com/dc68f61ef51f6a77fd4febb86ada885a
$ gisting --help-long
usage: main [<flags>] <command> [<args> ...]
Flags:
--help Show context-sensitive help (also try --help-long and
--help-man).
-t, --token=TOKEN OAuth token for accessing the gist API
Commands:
help [<command>...]
Show help.
download <id>
Download a gist.
create [<flags>] <files>...
Create a gist.
-d, --description=DESCRIPTION Description of the gist
--private If creating a private gist
update [<flags>] <id> <files>...
Update a gist.
-d, --description=DESCRIPTION Description of the gist