Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.07 KB

README.org

File metadata and controls

50 lines (34 loc) · 1.07 KB

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