docs: def _print_jobs(jobs, token_manager, app_url, options):
      """
      internal method to print the provided jobs array in a nice tabular
      format
  
      """
      accountids = set()
      for job in jobs:
          if job['user'] != 'jut.internal.user':
              accountids.add(job['user'])
  
      account_lookup = {
          'jut.internal.user': {
              'username': 'Jut Internal'
          }
      }
  
      if accountids:
          accounts_details = accounts.get_accounts(accountids,
                                                   token_manager=token_manager,
                                                   app_url=app_url)
  
          for account in accounts_details['accounts']:
              account_lookup[account['id']] = account
  
      if options.format == 'text':
          labels = OrderedDict()
          labels['id'] = 'Job ID'
          labels['alias'] = 'Juttle Name'
          labels['username'] = 'Owner'
          labels['_start_time'] = 'Start Date'
          labels['persistent'] = 'Persistent'
  
          max_lengths = {
              'id': 0,
              'alias': 0,
              'username': 0,
              '_start_time': 0,
              'persistent': 0,
          }
  
          for key in max_lengths.keys():
              max_lengths[key] = len(labels[key]) + 1
  
          # retrieve username and fix up persistent marker
          for job in jobs:
              job['username'] = account_lookup[job['user']]['username']
              job['persistent'] = 'YES' if job['timeout'] == 0 else 'NO'
  
          # calculate max length of each column
          for job in jobs:
              for key in labels.keys():
                  if max_lengths[key] < len(job[key]):
                      max_lengths[key] = len(job[key]) + 1
  
          # print labels
          header = ''
          for key in labels.keys():
              header += (labels[key] + ' ' * (max_lengths[key] - len(labels[key])))
  
          info(header)
  
          for job in jobs:
              line = ''
  
              for key in labels.keys():
                  line += (job[key] + ' ' * (max_lengths[key] - len(job[key])))
  
              info(line)
  
      elif options.format == 'table':
          headers = ['Job ID', 'Juttle Name', 'Owner', 'Start Date', 'Persistent']
  
          table = []
          for job in jobs:
              owner = account_lookup[job['user']]['username']
              persistent = 'YES' if job['timeout'] == 0 else 'NO'
              name = ''
  
              if 'alias' in job:
                  name = job['alias']
  
              table.append([job['id'],
                            name,
                            owner,
                            job['_start_time'],
                            persistent])
  
          info(tabulate.tabulate(table, headers, tablefmt="orgtbl"))
  
      else:
          raise JutException('Unsupported output format "%s"' %
                             options.format)