https://github.com/lilic/gisty
CLI for creating github gists
https://github.com/lilic/gisty
cli gists github
Last synced: 10 months ago
JSON representation
CLI for creating github gists
- Host: GitHub
- URL: https://github.com/lilic/gisty
- Owner: lilic
- License: mit
- Created: 2017-01-08T15:25:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T20:21:59.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T04:41:21.817Z (11 months ago)
- Topics: cli, gists, github
- Language: Go
- Size: 615 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gisty
## What is gisty?
Command Line Interface tool for creating, editing and displaying [github gists](https://gist.github.com/).
## Installation
To install gisty just run:
```
go get github.com/lilic/gisty
```
Note: Works with go 1.6+
## Examples
For all available flags run:
```
gisty --help
```
To create a gist:
```
gisty --create --description="Description." --content="This is my gist." --filename="gist.md" --anon
```
Or create a gist by piping in a file as an input:
```
cat gist.md | gisty --create --filename="gist.md"
```
Get a gist by passing in a gist ID:
```
gisty --show="7ba6e7d22cbd168f6fbd010fda725105"
```
To edit a gist interactively just pass in the gist ID:
```
gisty --edit="7ba6e7d22cbd168f6fbd010fda725105"
```
List last 30 gists:
```
gisty --list
```
Note:
Make sure your ENV variable `$GITHUB_TOKEN` is set to the personal github access token.