--------------------------------------------
============================================
_ _ _ _
| |__ __ _ ___| |__ (_)_ __ ___| |_ ___
| '_ \ / _` / __| '_ \| | '_ \ / _ \ __/ __|
| | | | (_| \__ \ | | | | |_) | __/ |_\__ \
|_| |_|\__,_|___/_| |_|_| .__/ \___|\__|___/
|_|
============================================
--------------------------------------------
hashipets is a collection of CLI snippets for use with HashiCorp tools like Consul, Nomad, Packer, Terraform, Vagrant, and Vault.
The snippets are kept in a TOML formatted file that is compatible with the simple command-line snippet manager pet.
NOTE: The commands in
hashipets.toml
should reflect those available in recent versions of the tool they apply to.
It's a tool and workflow for recalling and sharing complex CLI one-liners and seldom used but otherwise useful command line invocations.
Using the fantastic CLI utility pet
and the hashipets.toml in this repository, you'll be commanding HashiCorp tools like a pro in no time!
- Clone this repository within some
$DIR
- Install
pet
:brew install knqyf263/pet/pet
- Configure:
pet configure
- Point
snippetfile
to$DIR/hashipets/hashipets.toml
, save, and exit - 🎉
You can optionally customize the peco
fuzzy finder tool like so:
$ mkdir $HOME/.config/peco && \
cp $DIR/hashipets/peco_config.json $_/config.json
Then use pet
in awesome ways:
$ pet list
$ pet search
$ pet search | pbcopy
$ pet exec
$ pet new
Command> curl -s <consul_http_addr>/v1/status/peers
Description> Get Consul server peers from HTTP API
See the pet documentation for more ways to use it!
Here are some links to resources for the technologies used in this project:
hashipets was created by Brian Shumate and made possible through the generous time of the good people named in CONTRIBUTORS.md
Thanks to Teppei Fukuda for making pet
!