A simple CLI for working with gists
npm install grapplehound``bash`
npm install grapplehound -g
bash
gh --help
`If you can't remember the commands, just type gh and pick what you want...
__menu__
`bash
gh
`GrappleHound is hand-holdy. You should be able to get what you need from the interactive prompts. As much as I love typing, I'm not going to hand-write all the menu systems for something that I may only ever use.
Stuff You Should Know
$3
The first time you use GrappleHound, it will prompt you for your username and password. I do not save this anywhere nor do I send it to any endpoint other than GitHub's. Please see my dependencies for how this is handled. It's worth checking the source code for how this all happens just so you can feel relatively safe about how your credentials are handled.GrappleHound will create an API token in your GitHub account. Once created, it will store this token in
~/.grapplehound.json. This process supports two-factor authentication. If it's gross to you to have a token stored on your hard-drive DO NOT USE GRAPPLEHOUND.If you should delete/lose the
~/.grapplehound.json file, not to worry, instead of getting a new token, GrappleHound will just find and use the existing token (assuming you didn't delete it from GitHub) it created previously.$3
GrappleHound keeps a local ./.grapplehound.json` file in any directory where you're using it. This is how it knows which gists you've pulled down, what files belonged to those gists and things like that. It's good to know its there so you can add it to your .gitignore and .npmignore files OR even decide that this is yet another reason you hate it and shouldn't use it.