code: def list(self, argv):
          
  
          def read(job):
              for key in sorted(job.content.keys()):
                  # Ignore some fields that make the output hard to read and
                  # that are available via other commands.
                  if key in ["performance"]: continue
                  print("%s: %s" % (key, job.content[key]))
  
          if len(argv) == 0:
              index = 0
              for job in self.service.jobs:
                  print("@%d : %s" % (index, job.sid))
                  index += 1
              return
  
          self.foreach(argv, read)
docs: List all current search jobs if no jobs specified, otherwise
             list the properties of the specified jobs.