You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: core.rb
    path of file: ./repos/metasploit-framework/lib/rex/post/smb/ui/console/command_dispatcher
    
    the code of the file until where you have to start completion: # -*- coding: binary -*
    
          def commands
            cmds = {
              '?' => 'Help menu',
              'background' => 'Backgrounds the current session',
              'bg' => 'Alias for background',
              'exit' => 'Terminate the SMB session',
              'help' => 'Help menu',
              'irb' => 'Open an interactive Ruby shell on the current session',
              'pry' => 'Open the Pry debugger on the current session',
              'sessions' => 'Quickly switch to another session'
            }

            reqs = {}

            filter_commands(cmds, reqs)
          end