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

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

#cmd_help_tabs(str, words) ⇒ Object

Tab completion for the help command

By default just returns a list of all commands in all dispatchers.



220
221
222
223
224
225
226
227
228
# File 'lib/rex/ui/text/dispatcher_shell.rb', line 220

def cmd_help_tabs(str, words)
  return [] if words.length > 1

  tabs = []
  shell.dispatcher_stack.each { |dispatcher|
    tabs += dispatcher.commands.keys
  }
  return tabs
end