gist 0.4.0

A simple Github Gist client
docs.rs failed to build gist-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: gist-0.9.1

Gist

A command-line tool for publishing gists, inspired by icholy/gist.

Build Status

Usage

Read a file from stdin:

cat notes.md | gist

Set a file name:

cat error.log | gist -f "weird-bug.log"

Make a public Gist:

cat file.sh | gist -p

Multiple files?

gist src/*.rs

I want the Gist's URL copied to my clipboard, when it's done:

# *nix / X.org
echo stuff | gist | xclip

# mac
echo something | gist | pbcopy

Installation

Installation currently requires cargo, just cargo install gist.

For authentication, the program looks for an environment variable called GITHUB_GIST_TOKEN or GITHUB_TOKEN: it is mandatory to create a "secret" gist (the default).

You can generate one at: https://github.com/settings/tokens

Then append it to your .profile, or something with:

export GITHUB_TOKEN="blah blah blah"
# or
export GITHUB_GIST_TOKEN="blah blah blah"

License

MIT.

Hacking & bug reports

Yes please: file issues, or better send patches and pull-requests.