docs: def output(context, id):
      """output(context, id)
  
      Show a job output.
  
      >>> dcictl job-output [OPTIONS]
  
      :param string id: ID of the job to show [required]
      """
  
      colors = {
          'pre-run': '\x1b[6;30;44m',
          'running': '\x1b[6;30;42m',
          'post-run': '\x1b[6;30;44m',
          'failure': '\x1b[6;30;41m'}
      result = job.list_jobstates(context, id=id, sort='created_at')
      jobstates = result.json()['jobstates']
  
      for js in jobstates:
          color = colors.get(js['status'], '')
          click.echo('%s[%s]\x1b[0m %s' % (
              color,
              js['status'],
              js['comment']))
          f_l = job.list_files(
              context,
              id=id,
              where='jobstate_id:' + js['id'],
              sort='created_at')
          for f in f_l.json()['files']:
              click.echo(dci_file.content(context, id=f['id']).text)