Skip to content

Commit

Permalink
Merge pull request #14 from craftamap/prefix-envvars
Browse files Browse the repository at this point in the history
config: add prefix to environment variables to prevent possible collision with $USERNAME (#11)
  • Loading branch information
craftamap authored Aug 7, 2021
2 parents df96ff7 + fe62ad7 commit d120521
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func initConfig() {

viper.SetConfigFile(cfgFile)

viper.SetEnvPrefix("bb")
viper.AutomaticEnv()

err := viper.ReadInConfig()
Expand Down

0 comments on commit d120521

Please sign in to comment.