Recent Releases of gist-conceal.sh
gist-conceal.sh - Make a gist secret by creating a new secret gist, and deleting the old one
Make a gist secret by creating a new secret gist, and deleting the old one.

```bash
$ node index.js fetch --github-token
Fetch all public gists and save to gists.log
$ export GITHUB_TOKEN=
Fetch all public gists, whose filename starts with "output-"
$ node index.js fetch -o gists.log --gist-description-match /OUTPUT\$/i
Fetch all public gists, whose description ends with "OUTPUT"
You can now go ahead and remove the gists you don't want to conceal in gists.log
Then, run one of the following command to conceal the remaining gists
$ node index.js conceal --input gists.log
Conceal all gists in gists.log, by creating a new secret gist, and deleting the old one
$ node index.js conceal --input gists.log -o status.log
Conceal all gists in gists.log, and save status to status.log
```
Usage
```bash
$ script-gist-conceal [options]
Options:
-i, --input Input file (for conceal).
-o, --output Output file (for fetch/conceal).
--github-token GitHub token.
--github-throttle Throttle time in milliseconds.
--gist-description-match Regex to match gist description.
--gist-filename-match Regex to match gist filename.
Commands:
fetch Fetch gists matching criteria.
conceal Conceal gists by creating new secret gists.
Environment Variables:
$GITHUB_TOKEN GitHub token.
$GITHUB_THROTTLE Throttle time in milliseconds.
```
References
- JavaScript
Published by wolfram77 over 2 years ago
