Grappet is a snippet manager for Hosted Grafana that allows us to share snippets via the hg-snippets-config repo. It is a fork of Pet.
Clone the repo, run the setup, and list the commands:
git clone git@github.com:grafana/hg-snippets.git
cd hg-snippets
make setup
./grappet list
All our snippets are stored in a private repo, hg-snippets-config. This repo is nested within this one. To update snippets, just pull in changes from that repo:
cd ./hg-snippets-config && git pull
To add your snippets to shared repo, just commit them, push, and make a PR:
cd ./hg-snippets-config && git push