Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/y-yagi/edist
https://github.com/y-yagi/edist
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/y-yagi/edist
- Owner: y-yagi
- License: mit
- Created: 2019-11-10T02:11:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T15:57:17.000Z (over 1 year ago)
- Last Synced: 2024-06-21T10:58:51.887Z (5 months ago)
- Language: Go
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Edist
Edist is a CLI tool for editing [GitHub Gist](https://gist.github.com) in the local editor.
## Installation
```bash
$ go get github.com/y-yagi/edist
```Or you can download from [Releases](https://github.com/y-yagi/edist/releases).
## How to use
### Preparation
You need a GitHub access token to use Edist. Please generate a new token from [Developer settings](https://github.com/settings/tokens). When generates a token, please select `gist` scopes.
### Configure
Edist uses vim by default. You can change the default editor by a config file. Please run `edist -c` and specify your editor to `editor` key.
You can set GitHub access token to a config file. GitHub access token can be specified to ENV(`GITHUB_ACCESS_TOKEN`) also.
### Run
```
$ edist --help
Usage: edist [OPTIONS]OPTIONS:
-c cdit config.
-e ID
edit Gist that ID was specified
-l user
show list a user Gists
-n filename
create a new Gist by filename
-v print version number
```If you want to edit an existing Gist, specify an ID. "ID" be can confirm in Gist's URL(It is a value of after account name). Or you can check the ID `edist -l` command also.