aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_state.erl
diff options
context:
space:
mode:
authorPavel Khusainov <[email protected]>2015-07-29 09:56:29 +0300
committerPavel Khusainov <[email protected]>2015-07-29 09:56:29 +0300
commit781d4d76ac89d7184214e44523a720e23de781bc (patch)
tree5aac813bace96fdcff1c4873414377bbbb40c05c /src/rlx_state.erl
parentc67a6b7b4265b9c28fcbc785125c7538ed9b2b8d (diff)
downloadrelx-781d4d76ac89d7184214e44523a720e23de781bc.tar.gz
relx-781d4d76ac89d7184214e44523a720e23de781bc.tar.bz2
relx-781d4d76ac89d7184214e44523a720e23de781bc.zip
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.
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r--src/rlx_state.erl2
1 files changed, 1 insertions, 1 deletions
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{}.