Skip to content

Commit

Permalink
fix halt
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 21, 2018
1 parent d9f7be0 commit 18f541a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/mad.hrl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-define(VERSION,"871327").
-define(VERSION,"d9f7be").
Binary file modified mad
Binary file not shown.
14 changes: 7 additions & 7 deletions src/mad.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ main(Params) ->
(X,{C,R}) -> {[X|C],R} end,
{[],[]}, lists:map(fun atomize/1, Params)),

return(
halt(return(
lists:any(fun({error,_}) -> true; (_) -> false end,
lists:flatten(
lists:foldl(
Expand All @@ -23,7 +23,7 @@ main(Params) ->
Errors;
({_,_},Err) ->
errors(Invalid), {return,Err}
end, [], Valid)))).
end, [], Valid))))).

atomize("static") -> 'static';
atomize("deploy") -> 'deploy';
Expand Down Expand Up @@ -65,9 +65,9 @@ help(Reason,D) -> help(io_lib:format("~s ~p", [Reason, D])).
help(_Msg) -> help().
help() -> info("MAD Container Tool version ~s~n",[?VERSION]),
info("~n"),
info(" invoke = mad params~n"),
info(" params = [] | command [ options ] params ~n"),
info(" command = app | deps | clean | compile | up | eunit | strip~n"),
info(" | release [ beam | ling | script | runc | depot ]~n"),
info(" | deploy | start | stop | attach | sh | static [ <watch|min> ] ~n"),
info(" invoke = mad | mad params~n"),
info(" params = command [ options ] params ~n"),
info(" command = app | deps | clean | compile | up | eunit | strip~n"),
info(" | bundle [ beam | ling | script | runc | depot ]~n"),
info(" | deploy | start | stop | attach | sh | static [ <watch|min> ] ~n"),
return(false).

0 comments on commit 18f541a

Please sign in to comment.