Gist uploader for cli
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
LICENSE
README.md
main.go
main_test.go

README.md

gistup

Build Status Coverage Status Go Report Card

Gist uploader for cli.

Usage

$ 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

Options

  • -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.

Install

$ go get -u github.com/178inaba/gistup

License

MIT

Author

178inaba