code: func (c *defConfigBackend) loadTemplateConfig() error {
  	// get Environment Default Config Path
  	templatePath := c.opts.templatePath
  	if templatePath == "" {
  		return nil
  	}
  
  	// if set, use it to load default config
  	c.configViper.AddConfigPath(pathvar.Subst(templatePath))
  	err := c.configViper.ReadInConfig() // Find and read the config file
  	if err != nil {                     // Handle errors reading the config file
  		return errors.Wrapf(err, "loading config from template failed: %s", templatePath)
  	}
  	return nil
  }
docs: // load Default config