diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-12-21 16:23:44 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-12-21 16:23:44 -0600 |
commit | d7def6e9ffbbe21ce8a3b4f9e56d344ad2e417a9 (patch) | |
tree | 057af3495ed7436b487928c785cffd9b69f9defd /src/rebar_prv_new.erl | |
parent | fe470e534ccc22d153ca9005d7dd4c1f85447140 (diff) | |
parent | 44a30ca52f3c74d19007fd0433f6192fa4ccca79 (diff) |
Merge pull request #987 from ferd/plugin-templates
Plugin templates
Diffstat (limited to 'src/rebar_prv_new.erl')
-rw-r--r-- | src/rebar_prv_new.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl index 71560d5..064315e 100644 --- a/src/rebar_prv_new.erl +++ b/src/rebar_prv_new.erl @@ -132,10 +132,13 @@ show_template({Name, Type, Location, Description, Vars}) -> format_vars(Vars)]). format_type(escript) -> "built-in"; +format_type(plugin) -> "plugin"; format_type(file) -> "custom". format_type(escript, _) -> "built-in template"; +format_type(plugin, Loc) -> + io_lib:format("plugin template (~s)", [Loc]); format_type(file, Loc) -> io_lib:format("custom template (~s)", [Loc]). |