TILGist is a command line tool to aid collecting your daily snippets of learning on Github as gists
- Nodejs version 9.6.1
- npm version 4 or higher
- Clone the repo
sudo npm link
tilgistto get instructions on how to use the CLI tool
To create a private gist
tilgist -p fileName.txt "Content for the file" "Description for the file"
To create a publish gist
tilgist fileName.txt "Content for the file" "Description for the file"
To create a gist using the terminal editor
- Follow the prompts for ‘filename’ and ‘description`
When you run the CLI tool the first time, tilgist generates an OAuth token to connect to your github account. On further invocations of the CLI tool, the stored token is used.
The OAuth token is stored locally on your machine using the npm library configstore
The access for the OAuth token is limited creating gists