Method: Rex::Ui::Text::DispatcherShell::CommandDispatcher#unknown_command

Defined in:
lib/rex/ui/text/dispatcher_shell.rb

#unknown_command(method, line) ⇒ Symbol?

A callback that can be used to handle unknown commands. This can for example, allow a dispatcher to mark a command as being disabled.

Returns:

  • (Symbol, nil)

    Returns a symbol specifying the action that was taken by the handler or 'nil` if no action was taken. The only supported action at this time is `:handled`, signifying that the unknown command was handled by this dispatcher and no additional dispatchers should receive it.



381
382
383
# File 'lib/rex/ui/text/dispatcher_shell.rb', line 381

def unknown_command(method, line)
  nil
end