https://github.com/icholy/gist
Command line tool for creating github gists
https://github.com/icholy/gist
Last synced: 12 months ago
JSON representation
Command line tool for creating github gists
- Host: GitHub
- URL: https://github.com/icholy/gist
- Owner: icholy
- Created: 2015-05-06T15:26:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T16:09:47.000Z (over 7 years ago)
- Last Synced: 2025-04-04T09:01:41.738Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 57
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gist
> Command line tool for publishing gists
## Usage:
``` sh
# read from stdin
cat file.sh | gist
# set file name
cat file.sh | gist -f "myfile.sh"
# make public
cat file.sh | gist -p
# multiple files
gist *.js
```
## Install:
``` sh
go get github.com/icholy/gist
```
For auth, the tool looks for an environment variable called `GITHUB_TOKEN`
You can generate one at: https://github.com/settings/tokens
``` sh
export GITHUB_TOKEN="blah blah blah"
```