GistMaker
is a command line utility written in C++. It creates github gists from local text files.
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
.
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
gm --file ./path/to/somefile.md --public --desc "This is gist description"