anchor.diff:  %%% SOFTWARE.
   %%%-----------------------------------------------------------------------------
   %%% @doc
  -%%% emqttd control commands.
  +%%% emqttd control.
   %%%
   %%% @end
   %%%-----------------------------------------------------------------------------
  
positive.code: %%% API
  %%%=============================================================================
  
  %%------------------------------------------------------------------------------
  %% @doc Init cmd table.
  %% @end
  %%------------------------------------------------------------------------------
  init() ->
      ets:new(?CMD_TAB, [ordered_set, named_table, public]),
      register_cmd(status,  {?MODULE, status}, []),
      register_cmd(vm,      {?MODULE, vm}, []),
      register_cmd(cluster, {?MODULE, cluster}, []).
  
  %%------------------------------------------------------------------------------
  %% @doc Register a command
  
negative.code: %%------------------------------------------------------------------------------
  -spec register_cmd(atom(), {module(), atom()}, list()) -> true.
  register_cmd(Cmd, MF, Opts) ->
      gen_server:cast(?SERVER, {register_cmd, Cmd, MF, Opts}).
  
  %%------------------------------------------------------------------------------
  %% @doc Unregister a command
  