Skip to content
/ giz Public

Create gists from the command line and track them with git.

Notifications You must be signed in to change notification settings

thalesmg/giz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giz

Create gists from the command line and track them with git.

Usage

Create a gist from files a.txt and src/b.txt with a description clone the result into /tmp/mygist.

giz create -o /tmp/mygist -d "my gist description" ./a.txt ./src/b.txt

Installation

Using nix-env

nix-env -i -f https://github.com/thalesmg/giz/archive/master.tar.gz

Simple link

(here, it is assumed that /home/user/bin in the current user’s PATH)

nix build .
ln -sf $PWD/result/bin/giz /home/user/bin/giz

Configuration

Create a config.json file at XDG_CONFIG_HOME/giz (or $HOME/.config/giz) with the path that =pass= will use to get yout Github personal access token (PAT). This PAT must have at least the gist scope.

Example:

{
    "pass-path": "github.com/tokens/giz-token"
}

Or else pass that path as an argument with --pass-path:

giz create --pass-path "github.com/tokens/giz-token" -o /tmp/mygist a.txt

About

Create gists from the command line and track them with git.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published