Gist uploader for cli.
$ gistup target.go
# Or upload from standard input.
$ stdin | gistup
The github gist opens automatically in the browser.
If the browser can not be opened, the URL will be displayed.
The token is saved in the following file and omitting the user name and password entry from next time:
- macOS, Linux
~/.config/gistup/token
- Windows
%APPDATA%\gistup\token
-a
- Create anonymous gist.
-d <description>
- Description of gist.
-insecure
- Allow connections to SSL sites without certs.
-n <file_name>
- File name when upload standard input.
-p
- Create public gist.
-url <api_baseurl>
- For GitHub Enterprise, specify the base URL of the API.
$ go get -u github.com/178inaba/gistup