From 781d4d76ac89d7184214e44523a720e23de781bc Mon Sep 17 00:00:00 2001 From: Pavel Khusainov Date: Wed, 29 Jul 2015 09:56:29 +0300 Subject: Possibility for plugins to create custom actions/tasks Before this commit user side provider wasn't able to create custom action. Now we're parsing actions/targets in `rlx_cmd_args` we didn't check them, just converting to atoms. In order to display error message about wrong action, we have to add another check in `relx:run_providers` function. --- src/rlx_state.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rlx_state.erl') diff --git a/src/rlx_state.erl b/src/rlx_state.erl index 01bc07c..42cd730 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -125,7 +125,7 @@ rlx_release:t()). -type cmd_args() :: proplists:proplist(). -type caller() :: command_line | api. --type action() :: release | relup | tar. +-type action() :: atom(). -opaque t() :: #state_t{}. -- cgit v1.2.3