mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 14:41:02 +00:00
Replaces dot in env variable name with underscore so they can be used in bash.
This commit is contained in:
parent
1819cf7845
commit
83bb0f97d4
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ func setAllConfig(v *viper.Viper, flags *pflag.FlagSet, envPrefix string) error
|
|||
|
||||
// add env to viper
|
||||
v.SetEnvPrefix(envPrefix)
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer("-", "_", ".", "_"))
|
||||
v.AutomaticEnv()
|
||||
|
||||
c := v.GetString("config")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue