Add configFilePath and scrapersPath to configuration query (#1205)

This commit is contained in:
bnkai
2021-03-18 02:07:56 +02:00
committed by GitHub
parent 6369a500b3
commit 215737d6c5
3 changed files with 10 additions and 0 deletions

View File

@@ -146,6 +146,10 @@ func GetConfigPath() string {
return filepath.Dir(configFileUsed)
}
func GetConfigFilePath() string {
return viper.ConfigFileUsed()
}
func GetStashPaths() []*models.StashConfig {
var ret []*models.StashConfig
if err := viper.UnmarshalKey(Stash, &ret); err != nil || len(ret) == 0 {