Manage your gists from the command-line.

Related tags

Command Line gister
Overview

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.

Thanks

Special thanks goes to:

Creators

Remco Verhoef

Copyright and license

Code and documentation copyright 2011-2015 Remco Verhoef.

Code released under the MIT license.

You might also like...
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

asciigraph Go package to make lightweight ASCII line graphs ╭┈╯. Installation go get github.com/guptarohit/asciigraph Usage Basic graph package main

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command. You give git-xargs:

Package command provide simple API to create modern command-line interface

Package command Package command provide simple API to create modern command-line interface, mainly for lightweight usage, inspired by cobra Usage pack

A command line tool for simplified docker volume command built with go

dockervol A command line tool for simplified docker volume command built with go. Features: Remove anonymous volume (beta) Remove volume by matching n

Watcher - A simple command line app to watch files in a directory for changes and run a command when files change!

Watcher - Develop your programs easily Watcher watches all the files present in the directory it is run from of the directory that is specified while

A client for managing authzed or any API-compatible system from your command line.

zed A client for managing authzed or any API-compatible system from your command line. Installation zed is currently packaged by as a head-only Homebr

GoTTY is a simple command line tool that turns your CLI tools into web applications.
Aces is a command line utility that lets you encode any file to a character set of your choice.

Aces Any Character Encoding Set Aces is a command line utility that lets you encode any file to a character set of your choice. For example, you could

Comments
  • Improve formatting of cat command

    Improve formatting of cat command

    Currently it's not clear where one file ends and where another begins. My purpose is to have delimiter like this:

    
    ---
    # File: file_name_1.txt
    
    ---
    
    Content 1 
    
    ---
    # File: file_name_2.txt
    
    ---
    
    Content 2
    
    
    opened by rastasheep 1
  • Build Errors -- missing context

    Build Errors -- missing context

    $ go get github.com/dutchcoders/gister
    # github.com/dutchcoders/gister
    go/src/github.com/dutchcoders/gister/main.go:26:35: not enough arguments in call to client.Gists.Delete
    	have (string)
    	want (context.Context, string)
    go/src/github.com/dutchcoders/gister/main.go:75:36: not enough arguments in call to client.Gists.Create
    	have (*"github.com/google/go-github/github".Gist)
    	want (context.Context, *"github.com/google/go-github/github".Gist)
    go/src/github.com/dutchcoders/gister/main.go:93:34: not enough arguments in call to client.Gists.Get
    	have (string)
    	want (context.Context, string)
    go/src/github.com/dutchcoders/gister/main.go:131:34: not enough arguments in call to client.Gists.Get
    	have (string)
    	want (context.Context, string)
    go/src/github.com/dutchcoders/gister/main.go:159:34: not enough arguments in call to client.Gists.Get
    	have (string)
    	want (context.Context, string)
    go/src/github.com/dutchcoders/gister/main.go:274:34: not enough arguments in call to client.Gists.Get
    	have (string)
    	want (context.Context, string)
    go/src/github.com/dutchcoders/gister/main.go:283:34: not enough arguments in call to client.Gists.Edit
    	have (string, *"github.com/google/go-github/github".Gist)
    	want (context.Context, string, *"github.com/google/go-github/github".Gist)
    go/src/github.com/dutchcoders/gister/main.go:300:36: not enough arguments in call to client.Gists.List
    	have (string, *"github.com/google/go-github/github".GistListOptions)
    	want (context.Context, string, *"github.com/google/go-github/github".GistListOptions)
    go/src/github.com/dutchcoders/gister/main.go:313:36: not enough arguments in call to client.Gists.List
    	have (string, *"github.com/google/go-github/github".GistListOptions)
    	want (context.Context, string, *"github.com/google/go-github/github".GistListOptions)
    
    opened by prologic 0
Releases(v1.0.1)
Owner
Dutchcoders
Coding for fun. http://twitter.com/dutchcoders/
Dutchcoders
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Clement Sam 2.1k Dec 4, 2022
Easily manage your work via command line

Wo Easily manage your work via command line Introduction Wo, is cli that provides it easy to manage your workspace. Wo provides to manipulating workfl

Ali Furkan 5 Dec 11, 2021
An interactive command-line tool to manage your environments

goto An interactive command-line tool to manage your environments Overview You always need to login to some Linux machine or connect to a MySQL instan

Lucien 10 Jul 11, 2022
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purpose—to prompt for a value to be included in another command line. readval prints

Venky 0 Dec 22, 2021
This is a command line application to manage and fine-tune Time Machine exclude paths.

heptapod This is a command line application to manage and fine-tune Time Machine exclude paths. This repository is a WIP! The advertised functionality

Gergő Törcsvári 20 Nov 10, 2022
A Go library and a command-line tool to manage Docker Swarm clusters

go-swarm go-swarm is a Go library and command-line tool for managing the creation and maintenance of Docker Swarm cluster. Features: Creates new Swarm

AUCloud 3 Jul 26, 2022
kcli: command line interface tool to interact with K8trics API server as well as manage its lifecycle

K8trics CLI (kcli) kcli is command line interface tool to interact with K8trics API server as well as manage its lifecycle. kcli can provision and dep

null 3 Dec 15, 2021
Subnet-cli - A command-line interface to manage Avalanche Subnets

subnet-cli A command-line interface to manage Avalanche Subnets. Install git clo

Ava Labs 55 Nov 26, 2022
Watch your favourite anime using the video player of your choice directly from the command line

anime-cli Watch your favourite anime using the video player of your choice direc

Ruben Dewitte 4 Feb 10, 2022