Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1016 Bytes

README.org

File metadata and controls

42 lines (31 loc) · 1016 Bytes

GistMaker - create github gists from local files

GistMaker is a command line utility written in C++. It creates github gists from local text files.

How to build

Make sure you have conan, cmake, gcc installed.

git clone https://github.com/px86/gistmaker
cd gistmaker
mkdir build
cd build
conan install ..
cmake ..
cmake --build .

Note: the executable is named as gm.

Usage

Create a github personal access token, with permissions to create/delete gists. And export it in the GISTMAKER_TOKEN environment variable.

Usage: gistmaker [OPTIONS]

Options:
  --help            Print this help message
  --file, -f VAL    file to be uploaded
  --desc, -d VAL    gist description
  --public, -p      make gist public

Example

gm --file ./path/to/somefile.md --public --desc "This is gist description"