Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/gist

Command line tool for creating github gists
https://github.com/icholy/gist

Last synced: 1 day ago
JSON representation

Command line tool for creating github gists

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"
```