- Erlang 19.1
- Elixir 1.3.4
- C++ compiler (Tested with gcc and clang)
- Clone this repo
cd
to cloned directorymix do deps.get, escript.package
- Place the contents of
gbexec/bin
in your path
- run Dev build in container:
docker build -t gbexec:dev .
- Test container:
docker run --rm -v $PWD/examples:/examples -w /examples gbexec:dev -s hello.greenbar hello.json
> gbexec --help
gbexec 1.0.0
gbexec (-s,--slack|-h,--hipchat) <template file> <data file>
-s, --slack Use Slack template renderer
-h, --hipchat Use HipChat renderer
--help Display this help message
<template file> Path to a Greenbar template
<data file> Path to a file containing valid JSON
> bin/gbexec -s hello.greenbar data.json
*Hello Louise*
> bin/gbexec -h hello.greenbar data.json
<strong>Hello Louise</strong>
See examples directory for more examples.