|
|
@ -12,14 +12,14 @@ |
|
|
|
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}. |
|
|
|
init(State) -> |
|
|
|
Provider = providers:create([ |
|
|
|
{name, ?PROVIDER}, % The 'user friendly' name of the task |
|
|
|
{module, ?MODULE}, % The module implementation of the task |
|
|
|
{bare, true}, % The task can be run by the user, always true |
|
|
|
{deps, ?DEPS}, % The list of dependencies |
|
|
|
{example, "rebar {{name}}"}, % How to use the plugin |
|
|
|
{opts, []}, % list of options understood by the plugin |
|
|
|
{name, ?PROVIDER}, % The 'user friendly' name of the task |
|
|
|
{module, ?MODULE}, % The module implementation of the task |
|
|
|
{bare, true}, % The task can be run by the user, always true |
|
|
|
{deps, ?DEPS}, % The list of dependencies |
|
|
|
{example, "rebar3 {{name}}"}, % How to use the plugin |
|
|
|
{opts, []}, % list of options understood by the plugin |
|
|
|
{short_desc, "{{desc}}"}, |
|
|
|
{desc, ""} |
|
|
|
{desc, "{{desc}}"} |
|
|
|
]), |
|
|
|
{ok, rebar_state:add_provider(State, Provider)}. |
|
|
|
|
|
|
|