version bump

This commit is contained in:
2022-02-16 21:28:13 +01:00
parent 2a7e233cdb
commit 92feaef5bb
3 changed files with 11 additions and 4 deletions

View File

@@ -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()