0.1.1 • Published 5 years ago

make-gist v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

make-gist

This is a small CLI tool that generates a Github gist by collecting files from a particular directory and making a request to the Github API. Only creates secret gists.

Which files are included? This will include any file present in the directory specificed. It does not include any directories or subdirectories, and ignores specific files. Here is a list of ignored files:

package-lock.json
yarn.lock
.DS_Store

Install

npm install make-gist -g

Authorization

Requires a MAKE_GIST_TOKEN environment variable present, which should be a Github OAuth token with the gist scope. This can be saved in your bash profile.

npm.io

Usage

make-gist <directory> -d|--description

Example

# basic usage (will run in cwd)
make-gist

# point to directory and name the gist
make-gist path/to/project --description "my neat project"

# run with token in process
MAKE_GIST_TOKEN=<token> make-gist

Test

npm test
0.1.1

5 years ago

0.1.0

5 years ago