fix(cli): CLI of emqx_gateway_cli broken

This commit is contained in:
Shawn 2021-07-15 20:39:06 +08:00
parent 543f2c78c5
commit c834494113
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ unload() ->
lists:foreach(fun(Cmd) -> emqx_ctl:unregister_command(Cmd) end, Cmds).
is_cmd(Fun) ->
not lists:member(Fun, [init, load, module_info]).
case atom_to_list(Fun) of
"gateway" ++ _ -> true;
_ -> false
end.
%%--------------------------------------------------------------------