mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 09:42:29 +08:00
move from cmd-line to scaffold
This commit is contained in:
@@ -40,5 +40,15 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) {
|
||||
}
|
||||
|
||||
return true
|
||||
|
||||
}
|
||||
|
||||
func Config() Configuration {
|
||||
return viper.GetViper()
|
||||
}
|
||||
|
||||
func SubConfig(subKey string) Configuration {
|
||||
if subKey != "" {
|
||||
return viper.GetViper().Sub(subKey)
|
||||
}
|
||||
return viper.GetViper()
|
||||
}
|
||||
Reference in New Issue
Block a user