gister

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2015 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Gister

Manage your gists from the command-line. You can even manage your gists using your favorite editor.

Demo

Create a github access token

Install

$ brew tap dutchcoders/homebrew-gister
$ brew install gister

Environment variables

  • GITHUB_TOKEN: your github access token
  • EDITOR: your favorite editor

Usage

usage: gister --editor="vim" --token="GITHUB_TOKEN"
       [<flags>] <command> [<flags>] [<args> ...]

Flags:
  --help          Show help.
  --debug         enable debug mode
  --editor="EDITOR"  editor to use
  --token="GITHUB_TOKEN"
                  github token
  --description=DESCRIPTION
                  description
  --public        public gist

Commands:
  help [<command>]
    Show help for a command.

  list [<flags>]
    list gists

  search [<flags>] <keyword>
    search gists

  download --gist=GIST [<flags>] [<files>]
    download gist

  cat --gist=GIST [<files>]
    cat gist to stdout

  create [<files>]
    create new gist with specified files

  info --gist=GIST
    show info gist

  edit --gist=GIST
    edit gist using editor

  delete --gist=GIST
    delete specified gist

Samples

Create a new gist

$ gister create
00da2a1fddaa77fb40e4

$ cat /tmp/test.txt | gister create
00da2a1fddaa77fb40e4

List gists

$ gister list
nl5887/00da2a1fddaa77fb40e4
nl5887/f74a0a0837f609af9552 test
nl5887/0f70d642f6c91f33535e Slack invite by email

from another github user:

$ gister list --user=msoap

Search gists

$ gister search test
nl5887/f74a0a0837f609af9552 test

Edit

$ gister edit f74a0a0837f609af9552
nl5887/f74a0a0837f609af9552 test

Delete a gist

$ gister delete --gist 960473f0df6f8e98d220

Cat a gist to stdout

$ gister cat --gist 960473f0df6f8e98d220 | grep '...'

Contributions

Contributions are welcome.

Creators

Remco Verhoef

Code and documentation copyright 2011-2015 Remco Verhoef.

Code released under the MIT license.

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