code: func WriteEnvMapToFile(pth string, envs []models.EnvironmentItemModel) error {
  	if pth == "" {
  		return errors.New("No path provided")
  	}
  
  	envYML, err := generateFormattedYMLForEnvModels(envs)
  	if err != nil {
  		return err
  	}
  	bytes, err := yaml.Marshal(envYML)
  	if err != nil {
  		return err
  	}
  	return fileutil.WriteBytesToFile(pth, bytes)
  }
docs: // -------------------
  // --- File methods
  // WriteEnvMapToFile ...