mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Merge e475944a90
into b655df6ce8
This commit is contained in:
commit
5817059a4e
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ func initConfig() {
|
|||
|
||||
viper.SetConfigName(".cobra") // name of config file (without extension)
|
||||
viper.AddConfigPath("$HOME") // adding home directory as first search path
|
||||
viper.AddConfigPath(".") // optionally look for config in working directory
|
||||
viper.AutomaticEnv() // read in environment variables that match
|
||||
|
||||
// If a config file is found, read it in.
|
||||
|
|
Loading…
Add table
Reference in a new issue