code: def _report_command(self, cmd, procs=None):
          
          if isinstance(procs, list):
              procs = ",".join(map(str,procs))
          if procs:
              line = "\n> `{cmd}` ({procs})\n".format(cmd=str(cmd), procs=procs)
          else:
              line = "\n> `{cmd}`\n".format(cmd=str(cmd))
          print(line)
  
          with open(self.pipeline_commands_file, "a") as myfile:
              myfile.write(line + "\n\n")
docs: Writes a command to both stdout and to the commands log file 
          (self.pipeline_commands_file).
  
          :param str cmd: command to report
          :param str | list[str] procs: process numbers for processes in the command