fix(cli): CLI of emqx_gateway_cli broken
This commit is contained in:
parent
543f2c78c5
commit
c834494113
|
@ -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.
|
||||
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue