summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-11-11 17:56:44 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-11-11 17:56:44 +0000
commit2f1db5e0632bf64e51ed972f54860a209993e331 (patch)
treec341e8a85594e52e2c7542aa6655210dbd0ce275 /priv
parent6cae428058eb433864538f2e0c4a8fd5dd432f1c (diff)
Update plugin templates and doc to use template
Diffstat (limited to 'priv')
-rw-r--r--priv/templates/plugin.erl.dtl6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/plugin.erl.dtl b/priv/templates/plugin.erl.dtl
index df92cf6..af85d7f 100644
--- a/priv/templates/plugin.erl.dtl
+++ b/priv/templates/plugin.erl.dtl
@@ -20,7 +20,7 @@ init(State) ->
{deps, ?DEPS}, % The list of dependencies
{example, "rebar {{name}}"}, % How to use the plugin
{opts, []} % list of options understood by the plugin
- {short_desc, {{desc}}},
+ {short_desc, "{{desc}}"},
{desc, ""}
]),
{ok, rebar_state:add_provider(State, Provider)}.
@@ -30,7 +30,7 @@ init(State) ->
do(State) ->
{ok, State}.
--spec format_error(any(), rebar_state:t()) -> {iolist(), rebar_state:t()}.
+-spec format_error(any()) -> iolist().
format_error(Reason, State) ->
- {io_lib:format("~p", [Reason]), State}.
+ io_lib:format("~p", [Reason]).