code: def get_modules():
      '''
      List available ``eselect`` modules.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' eselect.get_modules
      '''
      modules = []
      module_list = exec_action('modules', 'list', action_parameter='--only-names')
      if not module_list:
          return None
  
      for module in module_list:
          if module not in ['help', 'usage', 'version']:
              modules.append(module)
      return modulef get_modules():
      '''
      List available ``eselect`` modules.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' eselect.get_modules
      '''
      modules = []
      module_list = exec_action('modules', 'list', action_parameter='--only-names')
      if not module_list:
          return None
  
      for module in module_list:
          if module not in ['help', 'usage', 'version']:
              modules.append(module)
      return modules
docs: List available ``eselect`` modules.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' eselect.get_modules