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

https://github.com/kare/gist

Create a GitHub Gist from command line
https://github.com/kare/gist

gist github golang

Last synced: 6 months ago
JSON representation

Create a GitHub Gist from command line

Awesome Lists containing this project

README

          

# gist

[![Build Status](https://travis-ci.org/kare/gist.svg?branch=master)](https://travis-ci.org/kare/gist)

## Installation

Download latest release from
[GitHub](https://github.com/kare/gist/releases/latest), extract archive and
install an executable for your operating system.

Alternatively if you have Go compiler installed you may want to run:
```
go get kkn.fi/cmd/gist
```

## Usage

```
% gist -h
usage: gist [-v] [-d string] [-p] [-a] file ... | -f file
-a create anonymous Gist
-d string
description for Gist
-f string
file name of the Gist. Reads file contents from stdin
-p create a public Gist
-token file
read GitHub personal access token from file (default $HOME/.github-gist-token)
-v print version and exit
```

## Dependencies

- [Google GitHub](https://godoc.org/github.com/google/go-github/github)
- [oauth2](https://godoc.org/golang.org/x/oauth2)

## License

BSD-3-Clause. See [LICENSE](LICENSE) for details.