code: func (s *ReportStatus) Encode(w io.Writer) error {
  	e := pktline.NewEncoder(w)
  	if err := e.Encodef("unpack %s\n", s.UnpackStatus); err != nil {
  		return err
  	}
  
  	for _, cs := range s.CommandStatuses {
  		if err := cs.encode(w); err != nil {
  			return err
  		}
  	}
  
  	return e.Flush()
  }
docs: // Encode writes the report status to a writer.