Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryotarai/go-gist
Gist Command written in Go
https://github.com/ryotarai/go-gist
Last synced: 2 months ago
JSON representation
Gist Command written in Go
- Host: GitHub
- URL: https://github.com/ryotarai/go-gist
- Owner: ryotarai
- Created: 2013-11-02T05:28:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-02T10:16:20.000Z (about 11 years ago)
- Last Synced: 2024-10-06T03:50:07.743Z (3 months ago)
- Language: Go
- Size: 141 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-gist
## Installation
```
$ go get github.com/ryotarai/go-gist
```### Pre-built Binary
```
$ wget https://github.com/ryotarai/go-gist/releases/download/v[VERSION]/go-gist-[OS]-[ARCH]
```* VERSION
* OS: linux, darwin, freebsd
* ARCH: 386, amd64, arm## Usage
```
$ go-gist -h
-P=false: paste from the clipboard
-c=false: copy gist URL to the clipboard
-d="": description of the gist
-h=false: show help
-o=false: open the gist in a browser
-p=false: private gist
-v=false: show version
```First, create a new token. (https://github.com/settings/tokens/new)
```
$ export GITHUB_TOKEN="..."
$ go-gist foo.txt
$ cat foo.txt | go-gist
```If you are using GitHub Enterprise, you should set `GITHUB_URL`:
```
$ export GITHUB_URL="https://your-ghe"
```