record_util plugin
$ rebar3 compile
Add the plugin to your rebar config:
{plugins, [
{record_util, {git, "https://github.com/HaotaoYang/record_util.git", {tag, "1.0.0"}}}
]}.
Add the config to your rebar config:
%% record_util_opts
{record_util_opts, [
{hrl_dirs, ["include"]},
{dest_dir, "src"},
{module_name, "record_helper"}
]}.
%% provider_hooks
{provider_hooks, [
{pre, [
{compile, {record_util, pre_compile}},
{clean, {record_util, pre_clean}}
]},
{post, [
{compile, {record_util, post_compile}},
{clean, {record_util, post_clean}}
]}
]}.