edist

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 16 Imported by: 0

README

Edist

Edist is a CLI tool for editing GitHub Gist in the local editor.

Installation

$ go get github.com/y-yagi/edist

Or you can download from Releases.

How to use

Preparation

You need a GitHub access token to use Edist. Please generate a new token from Developer settings. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL