func (c *Concierge) registerEnvVars() error {
	if len(c.cfg.EnvVars) == 0 {
		logrus.Infof("skipping environment variable configuration for %s, none are provided", c.name)
		return nil
	}

	k, err := registry.OpenKey(registry.LOCAL_MACHINE, c.cfg.registryKey, registry.WRITE)
	if err != nil {
		return errors.Wrap(err, "error opening registry key")
	}
	defer k.Close()

	return k.SetStringsValue("Environment", c.cfg.EnvVars)
}
// registerEnvVars creates a registry key for the service to set environment variables.
registerEnvVars creates a registry key for the service to set environment variables.
// registerEnvVars creates a registry key for the service to set environment variables .
func (c *Concierge) registerEnvVars() error {
	if len(c.cfg.EnvVars) == 0 {
		logrus.Infof("skipping environment variable configuration for %s, none are provided", c.name)
		return nil
	}
	k, err := registry.OpenKey(registry.LOCAL_MACHINE, c.cfg.registryKey, registry.WRITE)
	if err != nil {
		return errors.Wrap(err, "error opening registry key")
	}
	defer k.Close()
	return k.SetStringsValue("Environment", c.cfg.EnvVars)
}
func ( c * Concierge ) registerEnvVars ( ) error { if len ( c . cfg . EnvVars ) == 0 { logrus . Infof ( " " , c . name ) return nil } k , err := registry . OpenKey ( registry . LOCAL_MACHINE , c . cfg . registryKey , registry . WRITE ) if err != nil { return errors . Wrap ( err , " " ) } defer k . Close ( ) return k . SetStringsValue ( " " , c . cfg . EnvVars ) }
registerEnvVars creates a registry key for the service to set environment variables.
registerEnvVars creates a registry key for the service to set environment variables .