Bash nats is a layer built in top of go, to allow bash commands manage nats communication.
go get git.r3labs.io:libraries/bash-nats
Generally bash-nats can be used like:
$ bash-nats subject manager arguments
Where:
- subject : the nats subject which will be listening at
- manager : the bash command that will be called in order to manage the message
- arguments : extra arguments the manager may need
So, a real example can look like:
bash-nats create-instance jruby adapter.rb
Bash nats can also have multiple subscriptions by comma delimiting subjects, like so:
bash-nats create-instance,update-instance jruby adapter.rb
make test
If you have your nats running on a non default host you can define this host on the environment variable NATS_URI
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Moreover, if your pull request contains patches or features, you must include relevant unit tests.
For transparency into our release cycle and in striving to maintain backward compatibility, this project is maintained under the Semantic Versioning guidelines.
Code and documentation copyright since 2015 r3labs.io authors.
Code released under the Mozilla Public License Version 2.0.