From f50bec9e5e615e340619bb76b511cca3c6d04af7 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Wed, 16 Sep 2020 13:59:45 +0100 Subject: [PATCH 1/2] Add `alias` to example `rebar.config.sample` --- rebar.config.sample | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rebar.config.sample b/rebar.config.sample index f4ce43fc..5f4a6947 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -252,3 +252,14 @@ %% * {module(), function()}, %% * {module(), function(), arity()} {xref_ignores, []}. + +%% == alias == + +%% When you want a certain combination of operations to be done +%% as if you were using a rebar3 command. In the example below: +%% > rebar3 check +%% or +%% > rebar3 test + +{alias, [{check, [xref, dialyzer]}, + {test, [eunit, {ct, "--suite=rebar_alias_SUITE"}, cover]}]}. From d0c6df26becfe36c3433d459bb03eced0e1266f6 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Wed, 16 Sep 2020 14:02:50 +0100 Subject: [PATCH 2/2] Improve readability --- rebar.config.sample | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rebar.config.sample b/rebar.config.sample index 5f4a6947..e9bf66d4 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -258,8 +258,10 @@ %% When you want a certain combination of operations to be done %% as if you were using a rebar3 command. In the example below: %% > rebar3 check +%% (equivalent to rebar3 do xref, dialyzer) %% or %% > rebar3 test +%% (equivalent to rebar3 do eunit, ct --suite=rebar_alias_SUITE, cover) {alias, [{check, [xref, dialyzer]}, {test, [eunit, {ct, "--suite=rebar_alias_SUITE"}, cover]}]}.