Skip to content

178inaba/gistup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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