code: func writeOutputStream(output []string, outputFile string) error {
  	var f *os.File
  
  	if outputFile == "" {
  		f = os.Stdout
  	} else {
  		var err error
  		f, err = os.Create(outputFile)
  		if err != nil {
  			return err
  		}
  		defer f.Close()
  	}
  
  	for _, doc := range output {
  		_, err := f.WriteString("---\n")
  		if err != nil {
  			return err
  		}
  		_, err = f.WriteString(doc)
  		if err != nil {
  			return err
  		}
  	}
  
  	if len(output) > 0 {
  		_, err := f.WriteString("...\n")
  		if err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: // writeOutputStream writes the output as a YAML stream.