We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a2748 commit 8dc6c9aCopy full SHA for 8dc6c9a
cmd/root.go
@@ -102,10 +102,12 @@ func initConfig() {
102
homeDir, err := os.UserHomeDir()
103
cobra.CheckErr(err)
104
105
- // Search for .fga.yaml in:
106
- // 1- XDG_CONFIG/User Config Directory
107
- // 2- fga directory under User Config Directory
108
- // 3- Home directory
+ // Search for .fga.yml or .fga.yaml in:
+ // 1- The current working directory
+ // 2- The user-specific config directory
+ // 3- The fga subdirectory under the user-specific config directory
109
+ // 4- The current user's home directory
110
+ viperInstance.AddConfigPath(".")
111
viperInstance.AddConfigPath(configDir)
112
viperInstance.AddConfigPath(configDir + "/" + "fga")
113
viperInstance.AddConfigPath(homeDir)
0 commit comments