https://github.com/px86/gistmaker
GistMaker is a command line utility written in C++. It creates github gists from local files.
https://github.com/px86/gistmaker
cpp github-api github-gist
Last synced: 5 months ago
JSON representation
GistMaker is a command line utility written in C++. It creates github gists from local files.
- Host: GitHub
- URL: https://github.com/px86/gistmaker
- Owner: px86
- License: mit
- Created: 2022-12-31T14:19:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T14:20:15.000Z (about 3 years ago)
- Last Synced: 2025-06-16T19:07:11.806Z (7 months ago)
- Topics: cpp, github-api, github-gist
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: GistMaker - create github gists from local files
#+AUTHOR: Pushkar Raj
#+EMAIL: px86@protonmail.com
#+DATE: [2022-12-31 Sat]
=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.
#+begin_src shell
git clone https://github.com/px86/gistmaker
cd gistmaker
mkdir build
cd build
conan install ..
cmake ..
cmake --build .
#+end_src
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.
#+begin_src shell
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
#+end_src
** Example
#+begin_src shell
gm --file ./path/to/somefile.md --public --desc "This is gist description"
#+end_src