Compile diameter .dia files in rebar3 projects
$ ./rebar3 compile
Add the plugin to your rebar config:
{plugins, [
{ rebar3_diameter_compiler, {git, "https://github.com/carlosedp/rebar3_diameter_compiler.git", {branch, "master"}}}
]}.
{provider_hooks,
[
{pre,
[
{compile, {diameter, compile}},
{clean, {diameter, clean}}
]
}
]
}.
The plugin will be ran on compile and clean commands or call your plugin directly in an existing application:
$ rebar3 diameter compile
===> Fetching rebar3_diameter_compiler
===> Compiling rebar3_diameter_compiler
===> Compiling diameter...
$ rebar3 diameter clean
===> Cleaning diameter compiled files...