Published November 16, 2023 | Version 1.0.0
Software Open

javascriptf/script-gist-conceal: Make a gist secret by creating a new secret gist, and deleting the old one

Creators

  • 1. IIIT Hyderabad

Description

Make a gist secret by creating a new secret gist, and deleting the old one.

<br>

$ node index.js fetch --github-token <token> --output gists.log
# Fetch all public gists and save to gists.log

$ export GITHUB_TOKEN=<token>
$ node index.js fetch -o gists.log --gist-filename-match /^output-/i
# 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

<br> <br>

Usage

$ script-gist-conceal [options] <command>

# Options:
#   -i, --input <file>               Input file (for conceal).
#   -o, --output <file>              Output file (for fetch/conceal).
#   --github-token <token>           GitHub token.
#   --github-throttle <milliseconds> Throttle time in milliseconds.
#   --gist-description-match <regex> Regex to match gist description.
#   --gist-filename-match <regex>    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.

<br> <br>

References

<br> <br>

<br>

Files

javascriptf/script-gist-conceal-1.0.0.zip

Files (9.5 kB)

Name Size Download all
md5:ef5797d25c3d73dbb616a6eb92b2930e
9.5 kB Preview Download

Additional details

Related works