github.com/ernestio/bash-nats

Nats to bash commands


License
MPL-2.0
Install
go get github.com/ernestio/bash-nats

Documentation

Bash nats

Bash nats is a layer built in top of go, to allow bash commands manage nats communication.

Build status

  • master: CircleCI

Installation

go get git.r3labs.io:libraries/bash-nats

Useing it

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

Running Tests

make test

Custom NATS server

If you have your nats running on a non default host you can define this host on the environment variable NATS_URI

Contributing

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.

Versioning

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.