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)
List all current search jobs if no jobs specified, otherwise
dataset/ETHPy150Open splunk/splunk-sdk-python/examples/job.py/Program.list