This functionality is now available in the far more streamlined project https://github.com/lfe-rebar3/rebar3_lfe
The LFE rebar3 version plugin
Contents ↟
$ rebar3 compile
Use ↟
Add the required plugins and provider hooks to your rebar.config
:
{plugins, [
{'lfe-compile', ".*",
{git, "https://github.com/lfe-rebar3/compile.git", {tag, "0.5.0"}}},
{'lfe-version', ".*",
{git, "https://github.com/lfe-rebar3/version.git", {tag, "0.6.0"}}}
]}.
{provider_hooks, [
{post, [{compile, {lfe, compile}}]}
]}.
Then just call the plugin directly from your project directory:
$ rebar3 help lfe version
The LFE rebar3 version plugin.
Display the version info for LFE as well as major components of Erlang/OTP.
Usage: rebar3 lfe version
$ rebar3 lfe version
(#(erlang "18")
#(emulator "7.0")
#(driver-version "3.2")
#(lfe "1.1.1")
#(rebar "3.1.1"))
License ↟
BSD 3-Clause License
Copyright © 2015-2019, Duncan McGreggor [email protected]
Copyright © 2016, Eric Bailey [email protected]