Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zcong1993/gist

gist cli in go
https://github.com/zcong1993/gist

gist gist-cli golang zcong1993

Last synced: about 23 hours ago
JSON representation

gist cli in go

Awesome Lists containing this project

README

        

# gist
[![Go Report Card](https://goreportcard.com/badge/github.com/zcong1993/gist)](https://goreportcard.com/report/github.com/zcong1993/gist)
[![CircleCI Build Status](https://circleci.com/gh/zcong1993/gist.svg?style=shield)](https://circleci.com/gh/zcong1993/gist)
[![wercker status](https://app.wercker.com/status/a69dff6e96eca8984e750f81af414cc4/s/master "wercker status")](https://app.wercker.com/project/byKey/a69dff6e96eca8984e750f81af414cc4)
[![Build Status](https://travis-ci.org/zcong1993/gist.svg?branch=master)](https://travis-ci.org/zcong1993/gist)

> gist cli in go

## Usage

[download](https://github.com/zcong1993/gist/releases) the package rename to `gist`(if not in windows) and put in any `$PATH` folder.

```bash
# in your work folder
$ gist [flags] [files...]
# example
# set token
$ gist -s
# create gist with file1 and file2
$ gist file1 file2
# will return gist web link
# create public gist
$ gist -p file
# add your custom description
$ gist -d="your custom description"
```

You can get your gist `token` here [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new), remember to select `gist` scope.

## Screenshot

![gist screenshot](screenshot/gist.gif)

## Build

```bash
$ git clone https://github.com/zcong1993/gist.git
$ cd gist
$ go build gist.go
# then move the output to your `$PATH` folder.
```

## License

MIT © zcong1993