Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zcong1993/gist
- Owner: zcong1993
- License: mit
- Created: 2017-05-29T04:34:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T19:10:51.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T12:04:12.900Z (5 months ago)
- Topics: gist, gist-cli, golang, zcong1993
- Language: Go
- Size: 62.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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