mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-04 09:40:39 +00:00
version bump
This commit is contained in:
@@ -3,6 +3,7 @@ package cmd
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/cupcakearmy/autorestic/internal"
|
||||
"github.com/cupcakearmy/autorestic/internal/colors"
|
||||
@@ -78,11 +79,11 @@ func initConfig() {
|
||||
configPaths = append(configPaths, xdgConfig)
|
||||
}
|
||||
for _, cfgPath := range configPaths {
|
||||
if internal.VERBOSE {
|
||||
colors.Faint.Printf("> Adding config path: '%s'\n", cfgPath)
|
||||
}
|
||||
viper.AddConfigPath(cfgPath)
|
||||
}
|
||||
if internal.VERBOSE {
|
||||
colors.Faint.Printf("Using config paths: %s\n", strings.Join(configPaths, " "))
|
||||
}
|
||||
cfgFileName := ".autorestic"
|
||||
viper.SetConfigName(cfgFileName)
|
||||
viper.AutomaticEnv()
|
||||
|
Reference in New Issue
Block a user